• 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: Automating certain actions in Firefox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automating certain actions in Firefox


  • Subject: Re: Automating certain actions in Firefox
  • From: Philip Aker <email@hidden>
  • Date: Mon, 8 Sep 2008 23:20:19 -0700

On Sep 8, 2008, at 11:04 PM, Saurabh Mittal wrote:

GUI Scripting - where can I get myself started on this one..

1.

tell application "System Events" to tell application process "weird- Firefox-name"
get every UI element
end tell


2.
tell application "System Events" to tell application process "weird- Firefox-name"
tell menu bar 1
get every UI element
end tell
end tell


3.
tell application "System Events" to tell application process "weird- Firefox-name"
tell window 1
get every UI element
end tell
end tell


When you finally trace down to the "UI element" you wish to target, then you can use verbs like "click". Check out the "System Events" scripting dictionary by opening it in Script Editor with the "Open Dictionary…" menu item.


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: 
 >Automating certain actions in Firefox (From: "Saurabh Mittal" <email@hidden>)
 >Re: Automating certain actions in Firefox (From: James Nierodzik <email@hidden>)
 >Re: Automating certain actions in Firefox (From: "Saurabh Mittal" <email@hidden>)

  • Prev by Date: Re: Automating certain actions in Firefox
  • Next by Date: Re: Automating certain actions in Firefox
  • Previous by thread: Re: Automating certain actions in Firefox
  • Next by thread: Re: Automating certain actions in Firefox
  • Index(es):
    • Date
    • Thread