• 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: Can't Compile Mail Rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't Compile Mail Rule


  • Subject: Re: Can't Compile Mail Rule
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 7 Feb 2008 12:19:05 -0700


On Feb 7, 2008, at 12:03 PM, Brian Taylor wrote:

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

Try this:

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

-- 
Impeach The Son Of A Bush!

 _______________________________________________
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

References: 
 >Can't Compile Mail Rule (From: Brian Taylor <email@hidden>)

  • Prev by Date: Can't Compile Mail Rule
  • Next by Date: RE: Coercion of list to record
  • Previous by thread: Can't Compile Mail Rule
  • Next by thread: Getting script to run with apple mail rules.
  • Index(es):
    • Date
    • Thread