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

Re: Mail rule applescript and displaying alert


  • Subject: Re: Mail rule applescript and displaying alert
  • From: Jonny Taylor <email@hidden>
  • Date: Tue, 1 Apr 2008 10:33:02 +0100

That didn't change anything. Still hangs. Was there something particular you intended to achieve by rearranging things like that?

I've managed to work around the problem with the following construction:

using terms from application "Mail"
on perform mail action with messages selectedMessages
repeat with eachMessage in selectedMessages
tell application "Finder" to launch application "Helper" 
tell application "Helper" to activate
end repeat
end perform mail action with messages
end using terms from

I haven't worked out how to pass the content of the message to the helper app yet, which would be nice to be able to do, but I'm sure that's a solvable problem. Interestingly, the solution doesn't seem to work if "Helper" is a compiled AppleScript, but that's not critical for me.

On 31 Mar 2008, at 11:29, demski wrote:

Have you tried to put the tell-mail-block around the loop?
like in:
using terms from application "Mail"
on perform mail action with messages selectedMessages
tell application "Mail"
repeat with eachMessage in selectedMessages

display alert "test alert" message "test message" as warning
end repeat
end tell
end perform mail action with messages
end using terms from

 _______________________________________________
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: demski <email@hidden>
  • Next by Date: Re: Mail rule applescript and displaying alert
  • Next by thread: Re: Mail rule applescript and displaying alert
  • Index(es):
    • Date
    • Thread