• 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: if the document named (.........) exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: if the document named (.........) exists


  • Subject: Re: if the document named (.........) exists
  • From: Simon Forster <email@hidden>
  • Date: Fri, 10 May 2019 16:39:36 +0700

I found:

-- You need to open a page in Safari
-- This just makes sure the page is fully loaded
tell application "Safari"
        tell document 1
                -- Delay until page loaded
                repeat until (do JavaScript "document.readyState") is "complete"
                        delay 0.2
                end repeat
        end tell
end tell

in an old script. I’m assuming this used to work for me — and a quick test
suggests it still will.

HTH

Simon


> On 9 May 2019, at 04:54, Stockly, Ed <email@hidden> wrote:
>
> If you could use Google Chrome, there is a loading property of the Tab class
> that returns false when the page is done loading.
>
>
>
>
> From: AppleScript-Users
> <applescript-users-bounces+ed.stockly=email@hidden
> <mailto:applescript-users-bounces+ed.stockly=email@hidden>> on
> behalf of William Seabrook <email@hidden <mailto:email@hidden>>
> Date: Wednesday, May 8, 2019 at 2:38 PM
> To: AppleScript Digest <email@hidden
> <mailto:email@hidden>>
> Subject: if the document named (.........) exists
>
>> Here is an extract from a script to request the load a web page in Safari,
>> and wait until it is complete before continuing:
 _______________________________________________
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: 
 >if the document named (.........) exists (From: William Seabrook <email@hidden>)
 >Re: if the document named (.........) exists (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: [ANN] SD Notary
  • Next by Date: Re: if the document named (.........) exists
  • Previous by thread: Re: if the document named (.........) exists
  • Next by thread: Re: if the document named (.........) exists
  • Index(es):
    • Date
    • Thread