• 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: UI Scripting Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI Scripting Safari


  • Subject: Re: UI Scripting Safari
  • From: Jamie Eastwood <email@hidden>
  • Date: Thu, 13 Mar 2003 10:47:38 +0000

Hi Irwin,

Hope this helps.

From what I understand you need to wrap the click menu item commands in
their own 'tell' block.

tell application "System Events"
activate
end tell

tell application "Safari"
activate
end tell

tell application "System Events"
tell process "Safari"

tell menu bar 1
click menu item " Status Bar" of menu "View" -- 3 spaces before
the menu item
click menu item " Bookmarks Bar" of menu "View"
click menu item " Address Bar" of menu "View"
click menu item " Home" of menu "View" -- 6 spaces before menu
item
end tell

end tell
end tell

Jamie
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: UI Scripting Safari
      • From: Irwin Poche <email@hidden>
  • Prev by Date: How-to get file size (data fork)
  • Next by Date: Re: Need help scripting System Prefs (Sound)
  • Previous by thread: UI Scripting Safari
  • Next by thread: Re: UI Scripting Safari
  • Index(es):
    • Date
    • Thread