Applescript rules in Mail broken in Leopard?
Applescript rules in Mail broken in Leopard?
- Subject: Applescript rules in Mail broken in Leopard?
- From: email@hidden
- Date: Sat, 10 Nov 2007 16:40:49 +0100
Hi all,
After upgrading to Leopard, I find my Applescript rules in Mail.app no
longer works, even though the script itself still compiles and runs
just fine in Script Editor. The error I get is "Mail got an error:
AppleEvent handler failed.", which I suppose is the new "informative"
equivalent of "NSIAlreadyForgotWhatItWasCalledError: 4". Does anyone
know what this means? Here's a stripped down version of the script,
which composes an automatic reply:
on perform_mail_action(info)
try
tell application "Mail"
set newMessage to make new outgoing message with properties
{subject:"subject", content:"hello"}
tell newMessage
set visible to true
set sender to "sender"
make new to recipient at end of to recipients with properties
{name:"name", address:"adress"}
end tell
end tell
on error e
beep
set the clipboard to e
end try
end perform_mail_action
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden