Re: Mail.app selection of front window
Re: Mail.app selection of front window
- Subject: Re: Mail.app selection of front window
- From: Andrew Oliver <email@hidden>
- Date: Fri, 28 Mar 2003 17:18:42 -0800
Just a thought, Matthew...
You're not running an internationalized (e.g. Non-US) system are you?
Because, of course, "click menu item "Copy" of menu "Edit"..." doesn't work
when running a non-English system.
Which begs in favor of using positional references... "click menu item 5 of
menu 2 blah, blah, blah..." which is so unreadable that you have no idea
what the script is supposed to be doing.
Andrew
:)
On 3/28/03 1:58 PM, "Matthew Galaher" <email@hidden> wrote:
>
I installed the UI Scripting beta software, and so Cricket's bit of
>
code compiles without error, but when I run the following:
>
--
>
try
>
tell application "System Events"
>
tell application process "Mail"
>
click menu item "Copy" of menu "Edit" of menu bar 1
>
end tell
>
end tell
>
on error the_error
>
display dialog the_error buttons {"Cancel", "OK"} default button 2
>
end try
>
--
>
>
It returns "NSReceiverEvaluationScriptError: 4"
>
>
Any thoughts?
>
_______________________________________________
>
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.
_______________________________________________
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.