Mail.app: remove sound from a rule, and set color to black/white?
Mail.app: remove sound from a rule, and set color to black/white?
- Subject: Mail.app: remove sound from a rule, and set color to black/white?
- From: email@hidden
- Date: Thu, 12 Jan 2006 19:10:54 +0100
A rule can easily be set to 'play sound'.
But once set, how on earth do you remove the action (using script)?
The following should have been the obvious:
tell application "Mail"
set play sound of rule "nameOfRule" to ""
end tell
It won't work -- it will set the sound to "Mail Fetch Error.aiff"
(shown as "Fetch Error Sound" in the GUI).
The dictionary says that play sound is plain text, but I also tried
with false, {}, none, missing value -- in vain.
Removing the action in the GUI will actually set the play sound
property to "", so that empty string should really be what I should
set, as in the example above, but obviously it doesn't work.
COLOR:
On an other note: Coloring a message is easy. But how do I script it to
restore the color to the regular black and white? (Setting none just
removes the action, which is useful, but not what I wanted)
--heb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden