• 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: Apple's GUI Scripting Examples
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple's GUI Scripting Examples


  • Subject: Re: Apple's GUI Scripting Examples
  • From: Rob Jorgensen <email@hidden>
  • Date: Mon, 18 Aug 2003 11:22:52 -0400

At 8:05 AM -0700 8/18/03, Marconi wrote:
I have tried several of Apples GUI scripting examples straight from <http://www.apple.com/applescript/GUI/> with no modifications and each one gives the same syntax error: "Expected end of line but found class name" when it encounters 'menu item' in the last line of this snip.

tell application "System Preferences"
activate
end tell

tell application "System Events"
tell process "System Preferences"
click menu item "Date & Time" of menu "View" of menu bar 1

What am I not understanding?

When you installed the UI software (System Events), did you go to the Universal Access pref pane and "Enable access for assistive devices"? It's required for UI scripting.

-- Rob
_______________________________________________
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: Apple's GUI Scripting Examples
      • From: Marconi <email@hidden>
References: 
 >Apple's GUI Scripting Examples (From: Marconi <email@hidden>)

  • Prev by Date: Re: Apple's GUI Scripting Examples
  • Next by Date: FileMaker "Get remote URL" - avoiding dialog
  • Previous by thread: Re: Apple's GUI Scripting Examples
  • Next by thread: Re: Apple's GUI Scripting Examples
  • Index(es):
    • Date
    • Thread