Re: AppleScript Mail Rules
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.