• 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: AppleScript Mail Rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Mail Rules


  • Subject: Re: AppleScript Mail Rules
  • From: bill fancher <email@hidden>
  • Date: Mon, 9 Sep 2002 10:20:25 -0700

On Monday, September 9, 2002, at 01:13 AM, Philip Aker wrote:

On Sunday, September 8, 2002, at 05:05 PM, bill fancher wrote:

According to "What's New in Mail?":

"Rules
Additional criteria and more actions. Run an AppleScript, act only on senders that are in Address Book, and automatically flag messages. You can use multiple critera to get even more sophisticated."

I'm having trouble setting the "transfer message" portion (amongst other things):

I had taken the above quote to mean that one can "run an AppleScript" as the action associated with a rule, as in Outlook Express. In fact, I can't see any other way to interpret the above. There seems to be no way to do this (nothing in the dictionary seems to allow it nor does the application UI).

tell application "Mail"
set rue to make at end new rule with properties {name:"rue"}
tell rue
set is enabled to true
set should transfer message to true
set rc to make at beginning new rule condition with properties {type:sender is in my address book}
set color message to purple
end tell
end tell

When I insert a line to set "transfer message", I get NSUnknownKeyScriptError. I assume that's what you're seeing.

Thanks for the feedback. Still hoping to get a "works for me."

(Mail hung the first time I tried to send this. Sorry if it's is a duplicate.)

--
bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: AppleScript Mail Rules
      • From: "W. Eric Tyson" <email@hidden>
References: 
 >Re: AppleScript Mail Rules (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: AppleScript Mail Rules
  • Next by Date: Hoe to change screen resolution
  • Previous by thread: Re: AppleScript Mail Rules
  • Next by thread: Re: AppleScript Mail Rules
  • Index(es):
    • Date
    • Thread