Re: download file with curl and then launch it
Re: download file with curl and then launch it
- Subject: Re: download file with curl and then launch it
- From: Andrew Oliver <email@hidden>
- Date: Thu, 27 Jan 2005 00:37:40 -0800
On 1/26/05 6:19 PM, "Graham Anderson" <email@hidden> wrote:
> what is the proper way to download a file...wait for it to
> complete...and then launch it ?
>
>
> set the_command to "curl " & remoteFile & " -o " & quotes &
> localFile_posixPath & quotes
> do shell script the_command
>
> --Wait until download is complete and file is ready
> --then....
>
> tell application "QuickTime Player"
> launch -- bypasses promo movie
[blah, blah, blah]
I'm curious as to why you don't just have QuickTime Player open the URL
directly. Its dictionary includes both a 'getURL' and an 'open location'
command, both of which appear to accept a URL to play.
Andrew
:)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden