Re: Check for Download completed in Safari
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