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

Mail scripting


  • Subject: Mail scripting
  • From: Marcus Rodrigues <email@hidden>
  • Date: Thu, 14 Aug 2003 10:01:06 -0300

JD and others.

I found out why the script wasn't working for ruels. The following
worked just fine:

on perform_mail_action(info)
tell application "Mail"
set selectedMessages to |SelectedMessages| of info
set theRule to |Rule| of info
repeat with eachMessage in selectedMessages
set theSubject to subject of eachMessage
set theRuleName to name of theRule
set theText to "The rule named '" & theRuleName & "' B,
matched this message:" & return & return & B,
"Subject: " & theSubject
display dialog theText
end repeat
end tell
end perform_mail_action


What was lacking in the previous scripts was the "_" in
perform_mail_action, I think.


[]s

o#? Marcus Rodrigues o#?
iBook 600 - Combo - Jaguar
CC4nsul do Brasil Apple Clube - Caxias do Sul
Moderador BAC-Macusers
ichat: marcusrodrigues
mailto:email@hidden
http://homepage.mac.com/marcusrodrigues
_______________________________________________
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: Mail scripting
      • From: John Delacour <email@hidden>
  • Prev by Date: Utility for Quark 6 scripters: QXPScriptingAdditions Patch
  • Next by Date: Re: Mail scripting
  • Previous by thread: Re: Mail scripting
  • Next by thread: Re: Mail scripting
  • Index(es):
    • Date
    • Thread