GUI Scripting: accessing menus causes error
GUI Scripting: accessing menus causes error
- Subject: GUI Scripting: accessing menus causes error
- From: Henrik Boes <email@hidden>
- Date: Fri, 20 Jun 2003 15:20:14 -0600
Hello,
I am still trying to get at least a bit of a handle on GUI scripting
and am running into the following error when accessing menus:
System Events got an error:
NSReceiverEvaluationScriptError: 4
The script in question is the following:
tell application "Preview"
activate
end tell
delay 10
tell application "System Events"
tell process "Preview"
click menu item "Open" of menu "File" of menu bar 1
delay 1
end tell
end tell
Thoughts?
I am running Mac OS X 10.2.6.
Henrik Boes
_______________________________________________
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.