• 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: Wait for Load with PDF download in Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Wait for Load with PDF download in Safari (From: Adam Morris <email@hidden>)

  • Prev by Date: Re: Auto: AppleScript-Users Digest, Vol 6, Issue 350
  • Next by Date: Re: Wait for Load with PDF download in Safari
  • Previous by thread: Re: Wait for Load with PDF download in Safari
  • Next by thread: Re: Wait for Load with PDF download in Safari
  • Index(es):
    • Date
    • Thread