• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Thunderbird vs. Mozilla with System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Thunderbird vs. Mozilla with System Events
      • From: Elliotte Rusty Harold <email@hidden>
  • Prev by Date: Another InDesign scripting question
  • Next by Date: Re: Thunderbird vs. Mozilla with System Events
  • Previous by thread: Re: Another InDesign scripting question
  • Next by thread: Re: Thunderbird vs. Mozilla with System Events
  • Index(es):
    • Date
    • Thread