• 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
Mail rule applescript and displaying alert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail rule applescript and displaying alert


  • Subject: Mail rule applescript and displaying alert
  • From: Jonny Taylor <email@hidden>
  • Date: Thu, 20 Mar 2008 12:21:46 +0000

I've been trying to sort out an applescript which displays an alert when certain urgent messages are received by apple Mail. I have the following script (for Tiger):

using terms from application "Mail"
	on perform mail action with messages selectedMessages
		repeat with eachMessage in selectedMessages
			tell application "Mail"
				display alert "test alert" message "test message" as warning
			end tell
		end repeat
	end perform mail action with messages
end using terms from

This doesn't work as I'd hoped - a blank dialog appears with no "OK" button or any other content, and I have to force-quit Mail.

Can anyone suggest what I'm doing wrong? This same question was asked by John C Welch on this list in July 06, but nobody offered an answer...

Thanks in advance
Jonny
_______________________________________________
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
  • Follow-Ups:
    • Re: Mail rule applescript and displaying alert
      • From: Philip Aker <email@hidden>
  • Prev by Date: How to Install Script Editor alone
  • Next by Date: Re: How to Install Script Editor alone
  • Previous by thread: Re: How to Install Script Editor alone
  • Next by thread: Re: Mail rule applescript and displaying alert
  • Index(es):
    • Date
    • Thread