Re: Apple's GUI Scripting Examples
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.