Thunderbird vs. Mozilla with System Events
Thunderbird vs. Mozilla with System Events
- Subject: Thunderbird vs. Mozilla with System Events
- From: Elliotte Rusty Harold <email@hidden>
- Date: Fri, 08 Apr 2005 16:44:52 -0400
The following script works fine in Mozilla mail.
However, it dies with Thunderbird 1.0.2 with an
"NSReceiverEvaluationScriptError: 4" message. can anyone explain what
that means or suggest a possible fix? Thanks.
tell application "System Events"
tell process "thunderbird-bin"
activate
perform action "AXPick" of menu item "Copy" of menu "Edit" of menu
bar item "Edit" of menu bar 1
set quote to the clipboard as string
click menu item "Message Source" of menu "View" of menu bar item
"View" of menu bar 1
delay 2
click menu item "Select All" of menu "Edit" of menu bar item "Edit"
of menu bar 1
delay 1
click menu item "Copy" of menu "Edit" of menu bar item "Edit" of
menu bar 1
delay 1
set rawmessage to the clipboard as string
click menu item "Close" of menu "File" of menu bar item "File" of
menu bar 1
end tell
end tell
Specifically, it dies here, as shown by the event log:
click menu item "Message Source" of menu "View" of menu bar item "View"
of menu bar 1 of process "thunderbird-bin"
"System Events got an error: NSReceiverEvaluationScriptError: 4"
Does this mean anything to anybody? Suggestions?
--
Elliotte Rusty Harold email@hidden
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden