Re: Anyway to update Mail.app Rules in Applescript?
Re: Anyway to update Mail.app Rules in Applescript?
- Subject: Re: Anyway to update Mail.app Rules in Applescript?
- From: Michelle Steiner <email@hidden>
- Date: Sun, 20 Jan 2013 22:09:23 -0700
On Jan 20, 2013, at 9:19 PM, Robert Nicholson <email@hidden> wrote:
> Does the dictionary allow you to construct rules or edit existing rules? I need to update the folders all in on go for all my rules.
rule n : Class for message rules
elements
contains rule conditions; contained by application.
properties
color message (blue/gray/green/none/orange/other/purple/red/yellow) : If rule matches, apply this color
delete message (boolean) : If rule matches, delete message
forward text (text) : If rule matches, prepend this text to the forwarded message. Set to empty string to include no prepended text
forward message (text) : If rule matches, forward message to this address, or multiple addresses, separated by commas. Set to empty string to disable this action
mark flagged (boolean) : If rule matches, mark message as flagged
mark flag index (integer) : If rule matches, mark message with the specified flag. Set to -1 to disable this action
mark read (boolean) : If rule matches, mark message as read
play sound (text) : If rule matches, play this sound (specify name of sound or path to sound)
redirect message (text) : If rule matches, redirect message to this address or multiple addresses, separate by commas. Set to empty string to disable this action
reply text (text) : If rule matches, reply to message and prepend with this text. Set to empty string to disable this action
run script (file or missing value) : If rule matches, run this compiled AppleScript file. Set to empty string to disable this action
all conditions must be met (boolean) : Indicates whether all conditions must be met for rule to execute
copy message (mailbox) : If rule matches, copy to this mailbox
move message (mailbox) : If rule matches, move to this mailbox
highlight text using color (boolean) : Indicates whether the color will be used to highlight the text or background of a message in the message list
enabled (boolean) : Indicates whether the rule is enabled
name (text) : Name of rule
should copy message (boolean) : Indicates whether the rule has a copy action
should move message (boolean) : Indicates whether the rule has a move action
stop evaluating rules (boolean) : If rule matches, stop rule evaluation for this message
rule condition n : Class for conditions that can be attached to a single rule
elements
contained by rules.
properties
expression (text) : Rule expression field
header (text) : Rule header key
qualifier (begins with value/does contain value/does not contain value/ends with value/equal to value/less than value/greater than value/none) : Rule qualifier
rule type (account/any recipient/cc header/matches every message/from header/header key/message content/message is junk mail/sender is in my contacts/sender is in my previous recipients/sender is member of group/sender is not in my contacts/sender is not in my previous recipients/sender is not member of group/sender is VIP/subject header/to header/to or cc header/attachment type) : Rule type
--
Approximately 20% of workday absences occur on Tuesdays.
_______________________________________________
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