download file with curl and then launch it
download file with curl and then launch it
- Subject: download file with curl and then launch it
- From: Graham Anderson <email@hidden>
- Date: Wed, 26 Jan 2005 18:19:36 -0800
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
set ignore auto play to true
set ignore auto present to true
activate
stop every movie
try
open location localFile
on error
display dialog ¬
"Sorry, Fonovisa's network is down or unavailable. Check back again
shortly" buttons "quit" giving up after 5 with icon 0
return
end try
end tell
_______________________________________________
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