Re: Entourage -> rule -> attachments
Re: Entourage -> rule -> attachments
- Subject: Re: Entourage -> rule -> attachments
- From: julifos <email@hidden>
- Date: Wed, 05 Nov 2003 22:13:07 +0100
Hi!
Paul, thanks for your help (as allways). This stuff still doesn't work.
Here, the complete details, running Entourage 10.1.4, OS 10.2.8:
- There is a single rule and it works (I get a dialog, as I'll describe
below).
- I am testing with a single message containing two little attachments.
The script is concibed to be run from several mail clients, so the first
lines of code will determine if the "run" event comes from Entourage. After
that...
##############################
using terms from application "Microsoft Entourage"
tell app appName --> which is "Microsoft Entourage"
set currMsg to (current messages)
set theMsg to item 1 of currMsg
--> get subject and sender, this works OK
set theAttachments to attachments of currMsg
display dialog (length of result as text) --> "0"!!!
--> etc.
##############################
So, definitivelly I get a "0" as dialog when this script is executed by the
rule. I tried checking and unchecking the "Partially receive
messages over [20 KB]" stuff, same results...
I can share the code, but I don't know if this will help, as basically this
is the code.
Now, the funny part. I select the message manually in the inbox and observe
this behaviour:
##############################
tell application "Microsoft Entourage"
set currMsg to current messages
set theMsg to currMsg's item 1
--> incoming message id 32180 of application "Microsoft Entourage"
set theAttachments to attachments of currMsg
--> {}
set currMsgSame to selection
set theMsgSame to currMsgSame's item 1
--> incoming message id 32180 of application "Microsoft Entourage"
set theAttachmentsSame to attachments of theMsgSame
--> {attachment 1 of incoming message id 32180 of application "Microsoft
Entourage", attachment 2 of incoming message id 32180 of application
"Microsoft Entourage"}
end tell
##############################
I'd say that if I run this script some days ago, I'd get the attachments
using both "current messages" and "selection"...
Any ideas?
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.