Entourage -> rule -> attachments
Entourage -> rule -> attachments
- Subject: Entourage -> rule -> attachments
- From: julifos <email@hidden>
- Date: Tue, 04 Nov 2003 17:32:12 +0100
Hi all!
I'm working in a script for Entourage, attached to a rule, where I need work
with attachments, but seems that they doesn't exist when the script is fired
by an incoming message. The rule is as follow:
IF
if subject is "x" then
THEN
run applescript "x"
And applescript "x" contains this code:
########################
tell app "Entourage"
set msgs to (current messages)
set msg to item 1 of msgs
set msgAttachments to attachments of msg
repeat with i in msgAttachments
display dialog (name of i)
end repeat
end tell
########################
And nothing happens when the message *has* attachments.
So, seems that Entourage fires the "Run AppleScript" event before the
message was entirely downloaded, and it owns all its properties except for
attachments? Do you know a workaround for this, so "applescript x" can see
the attachments?
jj
_______________________________________________
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.