• 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: curl equivalence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: curl equivalence


  • Subject: Re: curl equivalence
  • From: Martin Orpen <email@hidden>
  • Date: Fri, 28 Oct 2005 15:49:26 +0100

On 28 Oct 2005, at 15:35, John R. wrote:

I guess the other problem is my own naive faith in what Applescript can be as an application scripting language: If I can do it manually in Safari, why shouldn't it be easy for me to script Safari to do the same thing?

If your only problem is working out if the page is fully loaded then you can target Safari's progress indicators. I'm really lazy, so I'd do something like:



tell application "System Events"
tell process "Safari"
get value of attribute "AXDescription" of button "Stop/ Reload" of group 2 of tool bar 1 of window 1
end tell
end tell



It would return "stop" if the page was still loading or "reload" if it had finished.


--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: curl equivalence (From: "John R." <email@hidden>)

  • Prev by Date: Re: curl equivalence
  • Next by Date: Re: curl equivalence
  • Previous by thread: Re: curl equivalence
  • Next by thread: Re: curl equivalence
  • Index(es):
    • Date
    • Thread