• 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: AppleScript Mail Rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Mail Rules


  • Subject: Re: AppleScript Mail Rules
  • From: "W. Eric Tyson" <email@hidden>
  • Date: Mon, 9 Sep 2002 13:19:30 -0600

cricket posted how to do this a week ago or so. here is the response:

This snippet will move the selected messages to the Trash mailbox:

tell application "Mail"
set theSelectedMessages to the selection
repeat with eachMessage in theSelectedMessages
set mailbox of eachMessage to mailbox "Trash"
end repeat
end tell


eric



On Monday, September 9, 2002, at 11:20 AM, bill fancher wrote:


tell application "Mail"
set rue to make at end new rule with properties {name:"rue"}
tell rue
set is enabled to true
set should transfer message to true
set rc to make at beginning new rule condition with properties {type:sender is in my address book}
set color message to purple
end tell
end tell

When I insert a line to set "transfer message", I get NSUnknownKeyScriptError. I assume that's what you're seeing.
_______________________________________________
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: 
 >Re: AppleScript Mail Rules (From: bill fancher <email@hidden>)

  • Prev by Date: Re: Test UTF7
  • Next by Date: Re: Test UTF7
  • Previous by thread: Re: AppleScript Mail Rules
  • Next by thread: Re: AppleScript Mail Rules
  • Index(es):
    • Date
    • Thread