• 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: menu bar 1 in 10.8?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


On Jun 27, 2013, at 7:00 AM, LuKreme <email@hidden> wrote:

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.

-- 

Bill Cheeseman - email@hidden

 _______________________________________________
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

  • Follow-Ups:
    • Re: menu bar 1 in 10.8?
      • From: LuKreme <email@hidden>
References: 
 >menu bar 1 in 10.8? (From: LuKreme <email@hidden>)

  • Prev by Date: Re: menu bar 1 in 10.8?
  • Next by Date: Re: menu bar 1 in 10.8?
  • Previous by thread: Re: menu bar 1 in 10.8?
  • Next by thread: Re: menu bar 1 in 10.8?
  • Index(es):
    • Date
    • Thread