Re: Running a script from Mail.app
Re: Running a script from Mail.app
- Subject: Re: Running a script from Mail.app
- From: Ben Waldie <email@hidden>
- Date: Thu, 13 Mar 2003 15:39:17 -0500
Mike,
On Wednesday, March 12, 2003, at 07:17 PM, Mike wrote:
I still am unable to run an external script using rules in Mail.app.
Can
anyone confirm that mail.app will run an external scrip upon receiving
a
rule trigger?
I've only just begun to use this feature of Mail, so I'm not entirely
up to speed yet on it. However, I had similar problems when I began
testing a script I wrote to be triggered when an email arrives. I
found that if I added the following subroutine to my script, that it
would be properly triggered.
on perform_mail_action(theData)
tell application "Mail"
set theSelectedMessages to |SelectedMessages| of theData
-- DO STUFF
end tell
end perform_mail_action
This may work for you.
Thanks,
- Ben
Benjamin S. Waldie
Automated Workflows
=============================================
Consulting - <
http://www.automatedworkflows.com>
AppleScript Info - <
http://www.applescriptguru.com>
AppleScript Training - <
http://www.applescripttraining.com>
=============================================
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.