• 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: using terms from
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using terms from


  • Subject: Re: using terms from
  • From: Mátyás Ferenc Farkas <email@hidden>
  • Date: Sun, 23 Nov 2003 14:11:11 +0100

hi,

i found this at the dictionary of Mail about mail actions, that they are triggered by rules. that is fine. how can i refer to its direct parameter?

"The direct parameter of this handler is a list of messages being acted upon. (from Mail)"

using terms from application "Mail"
on perform mail action with messages theMess for rule theRule
tell application "Mail"
activate
display dialog (properties of theMess as string) -- get the message
display dialog (properties of theRule as string) -- get the triggered rule
end tell
end perform mail action with messages
end using terms from

using terms from application "Mail"
on run
-- i need to define theMess, but how?
tell me to perform mail action with messages (theMess)
end run
end using terms from
--

why is so important to use using terms from here? there is no remote scripting enywhere...
how can i refer to the message, what is being acted by a rule?

thx a lot!
matyas
_______________________________________________
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.

References: 
 >using terms from (From: Mátyás Ferenc Farkas <email@hidden>)
 >Re: using terms from (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: using terms from
  • Next by Date: rule triggered applescript's direct parameter
  • Previous by thread: Re: using terms from
  • Next by thread: Re: using terms from
  • Index(es):
    • Date
    • Thread