Re: UI Scripting Safari
Re: UI Scripting Safari
- Subject: Re: UI Scripting Safari
- From: Irwin Poche <email@hidden>
- Date: Thu, 13 Mar 2003 20:17:17 -0600
Solved this late last night. Each menu item begins with spaces. I hadn9t
noticed that...
tell application "Safari"
activate
end tell
tell application "System Events"
tell process "Safari"
click menu item " Status Bar" of menu "View" of menu bar 1
click menu item " Bookmarks Bar" of menu "View" of menu bar 1
click menu item " Address Bar" of menu "View" of menu bar 1
end tell
end tell
This works and performs the same and is a bit easier to read...
tell application "Safari"
activate
end tell
tell application "System Events"
tell process "Safari"
tell menu "View" of menu bar 1
click menu item " Status Bar"
click menu item " Bookmarks Bar"
click menu item " Address Bar"
end tell
end tell
end tell
_______________________________________________
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.