• 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: Running a script from Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Running a script from Mail.app (From: Mike <email@hidden>)

  • Prev by Date: Re: scripting mail to select mailboxes
  • Next by Date: Re: select in aw6
  • Previous by thread: Re: Running a script from Mail.app
  • Next by thread: reading a file >32Kb
  • Index(es):
    • Date
    • Thread