Entourage Rules & AppleScript
Entourage Rules & AppleScript
- Subject: Entourage Rules & AppleScript
- From: Martin Orpen <email@hidden>
- Date: Tue, 30 Nov 2004 00:57:20 +0000
This is probably an easy one, but I'm too tired to work it out.
I've got a rule that I can apply to selected messages using:
tell application "Microsoft Entourage"
set foo to selection
set theAddress to address of sender of item 1 of foo
set theAccount to account of item 1 of foo
end tell
But if I try to apply it to incoming messages it obviously throws an error
stating "Can't get selection".
I've tried calling the message the "current" message and "message 1" and
"me" and "it" but it won't work :-(
What do you call *the* message that is the target of the rule?
(preparing to kick myself...)
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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