• 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: Robert Nicholson <email@hidden>
  • Date: Mon, 21 Jan 2013 18:22:58 -0600

How can I see what it's stored for the mailbox then?

tell application "Mail"
repeat with r in (get rules)
set shouldmove to should move message of r
log move message of r
end repeat
end tell


doesn't log anything significant


the dictionary doesn't make it clear whether move message is available as a property?

I am simply trying to log the mailboxes that current rule is set to move the message to and hopefully 
change it's value.

On Jan 21, 2013, at 5:39 PM, Michelle Steiner <email@hidden> wrote:

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

I need to simply vary the existing value ie. Mailbox

How can I get the property as a Mailbox so that then I can manipulate it?

the following errors.

tell application "Mail"
repeat with r in (get rules)
repeat with c in (rule conditions of r)
if (should move message of c) is true then
log move message of c
end if
end repeat
end repeat
end tell

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: Michelle Steiner <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>)
 >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>)
 >Re: Anyway to update Mail.app Rules in Applescript? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Setting Calendar Category in Apple Script
  • Next by Date: Re: Setting Calendar Category in Apple Script
  • 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