• 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
download file with curl and then launch it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: download file with curl and then launch it
      • From: jj <email@hidden>
    • Re: download file with curl and then launch it
      • From: Andrew Oliver <email@hidden>
    • Re: download file with curl and then launch it
      • From: Emmanuel <email@hidden>
References: 
 >Re: iWork Pages (From: T&B <email@hidden>)
 >iWork Pages - You can make it scriptable (From: T&B <email@hidden>)

  • Prev by Date: iWork Pages - You can make it scriptable
  • Next by Date: Re: [ann] HTMLDictionary
  • Previous by thread: iWork Pages - You can make it scriptable
  • Next by thread: Re: download file with curl and then launch it
  • Index(es):
    • Date
    • Thread