Re: Wait for Load with PDF download in Safari
Re: Wait for Load with PDF download in Safari
- Subject: Re: Wait for Load with PDF download in Safari
- From: "email@hidden" <email@hidden>
- Date: Sun, 2 Aug 2009 13:48:22 -0700
Safari is notoriously blind to most applescript. <sigh>
What I've done in the past is looked at the file being downloaded. In some cases Safari uses a special file type and extension for files being downloaded. When that changes you know it's done.
In other cases you can do a repeat loop that checks the size of a file, delays a few seconds then checks it again and if the size hasn't changed you know it's done.
HTH,
ES
I was wondering if anyone has found a surefire way to write this function that works in every case conceivable? (For Safari 4 at least) Maybe file a bug with Apple, saying scripters ought to be able to detect this with a call to, say, ready state of document?
|
_______________________________________________
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