• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Anyway to update Mail.app Rules in Applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Mon, 21 Jan 2013 15:45:27 -0700

On Jan 21, 2013, at 12:14 PM, Robert Nicholson <email@hidden> wrote:

Without having to create new rules to replace existing rules how does one modify an existing rule?

Select the rule programmatically, then change the appropriate property.  Here's an example:

tell application "Mail"
tell rule "Applescript"
set color message to purple
end tell
end tell

-- Michelle

-- 
If you ever get the urge to run naked in public, drink some Windex.  It will keep you from streaking.


 _______________________________________________
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

  • Follow-Ups:
    • Re: Anyway to update Mail.app Rules in Applescript?
      • From: Robert Nicholson <email@hidden>
References: 
 >Anyway to update Mail.app Rules in Applescript? (From: Robert Nicholson <email@hidden>)
 >Re: Anyway to update Mail.app Rules in Applescript? (From: Michelle Steiner <email@hidden>)
 >Re: Anyway to update Mail.app Rules in Applescript? (From: Robert Nicholson <email@hidden>)

  • Prev by Date: Re: GUI Scripting in Mail
  • Next by Date: Re: Anyway to update Mail.app Rules in Applescript?
  • Previous by thread: Re: Anyway to update Mail.app Rules in Applescript?
  • Next by thread: Re: Anyway to update Mail.app Rules in Applescript?
  • Index(es):
    • Date
    • Thread