Re: AppleScript Mail Rules
Re: AppleScript Mail Rules
- Subject: Re: AppleScript Mail Rules
- From: bill fancher <email@hidden>
- Date: Mon, 9 Sep 2002 09:45:42 -0700
On Monday, September 9, 2002, at 01:13 AM, Philip Aker wrote:
On Sunday, September 8, 2002, at 05:05 PM, bill fancher wrote:
According to "What's New in Mail?":
"Rules
Additional criteria and more actions. Run an AppleScript, act only on
senders that are in Address Book, and automatically flag messages.
You can use multiple critera to get even more sophisticated."
I'm having trouble setting the "transfer message" portion (amongst
other things):
I had taken the above quote to mean that one can "run an AppleScript"
as the action associated with a rule, as in Outlook Express. In fact, I
can't see any other way to interpret the above; but there seems to be
no way to do this (nothing in the dictionary seems to allow it, nor
does the application UI). I've been hoping I hosed my installation
somehow (I have a "non-standard" Mail configuration), but I'm beginning
to suspect that the feature never shipped.
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
Adding a line to set "transfer message" gives me an
NSUnknownKeyScriptError. I assume that's what you're seeing.
Thanks for the feedback. Still hoping to get a "Works for me"...
--
bill
_______________________________________________
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.