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

Apple's GUI Scripting Examples


  • Subject: Apple's GUI Scripting Examples
  • From: Marconi <email@hidden>
  • Date: Mon, 18 Aug 2003 08:05:01 -0700

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?

--
"Bad science sets out to make a point, looks neither to the left nor to the right but only straight ahead for evidence that supports the point it sets out to make. When it finds evidence it likes, it gathers it tenderly and subjects it to little or no testing." -- MARK VONNEGUT, IN THE BOSTON GLOBE
_______________________________________________
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: Rob Jorgensen <email@hidden>
    • Re: Apple's GUI Scripting Examples
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: Netscape email scripting
  • Next by Date: Re: Apple's GUI Scripting Examples
  • Previous by thread: Re: InDesign Table overflow problem
  • Next by thread: Re: Apple's GUI Scripting Examples
  • Index(es):
    • Date
    • Thread