• 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
Getting script to run with apple mail rules.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting script to run with apple mail rules.


  • Subject: Getting script to run with apple mail rules.
  • From: Brian Taylor <email@hidden>
  • Date: Thu, 7 Feb 2008 16:44:22 -0500

Does anybody know the trick to get a script to run with mail.app rules.  Here is the script I wan to run when a message meets a certain filter.

using terms from application "Mail"
on perform mail action with messages theMessages for rule therule
tell application "Finder"


display dialog "This computer will go to sleep in 1 minute." buttons {"Sleep", "Cancel"} default button 2 giving up after 60


sleep


end tell
end perform mail action with messages
end using terms from

I've tried everything I can think of.  Seems like it should work.  Can't get it to run.

Thanks.
Thank You,
Brian Taylor

 _______________________________________________
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: Getting script to run with apple mail rules.
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Coercion of list to record
  • Next by Date: Re: Coercion of list to record
  • Previous by thread: Re: Can't Compile Mail Rule
  • Next by thread: Re: Getting script to run with apple mail rules.
  • Index(es):
    • Date
    • Thread