• 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: Applescript + Safari to open URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript + Safari to open URL


  • Subject: Re: Applescript + Safari to open URL
  • From: Philip Aker <email@hidden>
  • Date: Tue, 7 Jul 2009 02:56:57 -0700

On 2009-07-07, at 02:45:34, Satyam Satyanarayana wrote:

I am looking for some AppleScript to open an URL like "www.yahoo.com" in Safari.
I am able to do it.

Yes, in AppleScript, something like:

tell application "Safari" to open location "http://www.apple.com"

But how to check from AppleScript whether the page is fully shown or still loading etc? So that accordingly I can proceed further?

I think this can be handled by a 'do _javascript_' message (google for _javascript_ "readyState"). If that is the case, then it might be better to instruct Safari to open the specified URL in the same message.

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
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: 
 >Strange Font Pasted in Mail (From: Christopher Stone <email@hidden>)
 >Re: Strange Font Pasted in Mail (From: Christopher Stone <email@hidden>)
 >Re: Strange Font Pasted in Mail (From: Yvan KOENIG <email@hidden>)
 >Applescript + Safari to open URL (From: Satyam Satyanarayana <email@hidden>)

  • Prev by Date: Applescript + Safari to open URL
  • Next by Date: Send Clipboard Image to Web
  • Previous by thread: Applescript + Safari to open URL
  • Next by thread: Re: Applescript + Safari to open URL
  • Index(es):
    • Date
    • Thread