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

menu bar 1 in 10.8?


  • Subject: menu bar 1 in 10.8?
  • From: LuKreme <email@hidden>
  • Date: Thu, 27 Jun 2013 05:00:04 -0600

Is there a change in System Events GUI scripting recently?

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

=> error "System Events got an error: Can’t get menu bar 1." number -1728 from menu bar 1

I also tried this:

tell application "Mail"
  tell application "System Events"
    tell menu bar 1
      tell menu "File"
        click menu item "Add Account"
      end tell
    end tell
  end tell
end tell

With the same results.

--
"Remember -- that which does not kill us can only make us stronger."
"And that which *does* kill us leaves us *dead*!"


 _______________________________________________
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: Bill Cheeseman <email@hidden>
    • Re: menu bar 1 in 10.8?
      • From: Mads Fog Albrechtslund <email@hidden>
  • Prev by Date: Re: unresponsive apps and applescript
  • Next by Date: Re: menu bar 1 in 10.8?
  • Previous by thread: Re: Mail Scripting - Copy Messages to Finder Folder
  • Next by thread: Re: menu bar 1 in 10.8?
  • Index(es):
    • Date
    • Thread