Re: Mail rule applescript and displaying alert
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