• 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
Help with making rule script, please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with making rule script, please


  • Subject: Help with making rule script, please
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 12 Jun 2005 13:45:00 -0700

I am having problems with this script exceprt.

tell application "Mail"
    if not (exists (rule folder_name)) then
        set new_rule to make new rule at after rule 1 with properties {name:folder_name, move message:mailbox folder_name, stop evaluating rules:true}
        tell new_rule
            make new rule condition with properties {_expression_:address_, rule type:reply to, qualifier:does contain value, enabled:true}
        end tell
    end if
end tell

The rule is created, however, only "stop evaluating rules" is shown as an action.  in addition, if I remove "stop evaluating rules: true" from the script, it creates a rule to move the message, but shows "no mailbox selected."

The rule conditions show the rule type to be "from" instead of "reply to"; further, the rule is not enabled.

-- 
Power is the ability to not have to please.

 _______________________________________________
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

  • Prev by Date: Re: keystroke "Home"
  • Next by Date: Re: Script Objects - help please!!
  • Previous by thread: Re: keystroke "Home"
  • Next by thread: get a parameter from script object
  • Index(es):
    • Date
    • Thread