• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to script Safari to download a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: How to script Safari to download a file (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: Problem getting position of desktop items
  • Next by Date: RE: Error with AppleScript
  • Previous by thread: Re: How to script Safari to download a file
  • Next by thread: Re: How to script Safari to download a file
  • Index(es):
    • Date
    • Thread