Re: How to script Safari to download a file
Re: How to script Safari to download a file
- Subject: Re: How to script Safari to download a file
- From: Andrew Oliver <email@hidden>
- Date: Thu, 22 Jul 2004 06:53:50 -0700
Why does everyone seem to think that curl via do shell script is the
solution here.
What's wrong with 'URL Access Scripting'?
tell application "URL Access Scripting"
download
"
http://www.archive.org/download/dn2004-0716/dn2004-0716-1_64kb.mp3" to
folder (path to desktop)
end tell
Don't get me wrong, curl is a viable solution, but I tend to not spawn extra
shell processes when I don't need to, and downloading a URL is one of those
cases where I don't need to.
Andrew
:)
On 7/22/04 3:05 AM, "Walter Ian Kaye" <email@hidden> wrote:
>
At 02:53a -0600 07/22/2004, LuKreme didst inscribe upon an electronic papyrus:
>
>
> On 16 Jul 2004, at 15:24, jj wrote:
>
>>> I download an audio file from a webpage each day and would like to
>
>>> automate
>
>>> the process.
>
>>
>
>> You can use "curl" in a "do shell script":
>
>
>
> Curl is nice, and is how I would do this (not even in an applescript,
>
> just a crontab line) but I am curious, is it possible with Safari?
>
>
Not as such. There is no "fetch URL" command. You could, of course,
>
use Interarchy; but Safari don't play dat, homey. :)
>
>
>
-boo
>
formulating vegan protein bars
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.