Rules in mail.app and Entourage

Hi…
I new to applescript…so bear with me please.

Is there any way to script the toggling of rules in either mail.app or entourage???

In Mail, this will toggle (enable/disable) rule 1. Is that what you mean?

tell application "Mail"
	if is enabled of rule 1 is false then
		set is enabled of rule 1 to true
	else
		if is enabled of rule 1 is true then
			set is enabled of rule 1 to false
		end if
	end if
end tell

Yes that is exactly it :slight_smile:

Thank you very much!!