• 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: Check for Download completed in Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check for Download completed in Safari


  • Subject: Re: Check for Download completed in Safari
  • From: Yvan KOENIG <email@hidden>
  • Date: Fri, 2 Apr 2010 19:33:53 +0200


Le 2 avr. 2010 à 18:45, David Thompson a écrit :


Still a beginner at applescript.

I  have written a simple applescript to download a csv data file using Safari and want to then open this file with Numbers to do some more manipulation.
It takes a few seconds for the full download to complete and I get an error if numbers tries to open the file before its fully downloaded.  

How can I check if the download is completed before asking Numbers to open the file?  

You may use this kind of lup :

set size1 to 0
repeat
set size2 to size of file theCsvFile
if size2 = size1 then exit repeat
set size1 to size2
end repeat

Yvan KOENIG (VALLAURIS, France) vendredi 2 avril 2010 19:33:25


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Check for Download completed in Safari (From: David Thompson <email@hidden>)

  • Prev by Date: Pages and Applescript
  • Next by Date: adding new groups in address book for blind users
  • Previous by thread: Check for Download completed in Safari
  • Next by thread: Pages and Applescript
  • Index(es):
    • Date
    • Thread