MACSCRPT Archives

July 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 5 Jul 2007 18:28:38 -0400
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
MIME-Version:
1.0
Content-Transfer-Encoding:
quoted-printable
In-Reply-To:
<p06230913c2b2d7a3f19f@[128.253.187.23]>
Content-Type:
text/plain; charset=UTF-8; format=flowed
From:
"J. Stewart" <[log in to unmask]>
Parts/Attachments:
text/plain (35 lines)
On 7/5/07 at 1:45 PM, Bill Steele <[log in to unmask]> spake thusly:

>Every example I see goes like this:
>
>set filepath to "disk:folder:filename"
>tell application "URL Access Scripting"
>	activate
>	download "http://blahdiblah.html" to filepath
>end tell
>
>I think I've even done it that way, although I can't find an example in my library.
>
>But it gives me "URL Access Scripting got an error: Some data was the wrong type."  I've tried
>
>to alias filepath
>to file filepath
>to file alias filepath
>
>and probably a few others.
>
>Or is it complaining about the contents of the page it's 
>downloading? I've tried a couple of different pages with the 
>same result.


You would probably have better luck with a shell script using 
"curl". URL Access Scripting has always seemed a bit flakey to me.

<x-man-page://curl> or in Terminal - man curl

JBS
-- 
Under a government which imprisons any unjustly, the true place 
for a just man is also in prison.  -Henry David Thoreau

ATOM RSS1 RSS2