System Events and Mail
System Events and Mail
- Subject: System Events and Mail
- From: Jon Rosen <email@hidden>
- Date: Wed, 25 Dec 2002 23:33:53 -0500
I'm trying to use the new System Events, but it seems to fail at the
simplest of tasks. The following script:
tell application "System Events"
tell process "Mail"
click menu item "Get New Mail" of menu "Mailbox" of menu bar 1
end tell
end tell
gives me the following result:
System Events got an error: NSReceiverEvaluationScriptError: 4
The script:
tell application "System Events"
tell process "Mail"
click menu item "Preferences" of menu "Mail" of menu bar 1
end tell
end tell
gives me the same result. I can't find any documentation to shed any
light on why this doesn't work. Any suggestions?
Thanks,
Jon
_______________________________________________
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.