• 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
Applescript rules in Mail broken in Leopard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: OT: Favourite features missing from Leopard [was: Applescript and Bluetooth]
  • Next by Date: Scripting a scanner
  • Previous by thread: Re: Eject in Leopard (Jay Louvion)
  • Next by thread: Scripting a scanner
  • Index(es):
    • Date
    • Thread