Re: menu bar 1 in 10.8?
Re: menu bar 1 in 10.8?
- Subject: Re: menu bar 1 in 10.8?
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 27 Jun 2013 07:14:25 -0400
tell application "Mail" tell application "System Events" click menu item "Add Account" of menu 1 of menu bar item "File" of menu bar 1 end tell end tell
The first two lines should be
tell application "System Events" tell process "Mail"
In GUI Scripting, you tell the System Events application to do something using its terminology dictionary. One of the objects in System Events' dictionary is 'process', so you tell the 'process' object to do something. There is no magic here. In principle, it's just like telling application "Finder" to tell front window to do something, where 'window' is an object in Finder's dictionary. |
_______________________________________________
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