Message ID from Draft Window
Message ID from Draft Window
- Subject: Message ID from Draft Window
- From: Stephen Swift <email@hidden>
- Date: Sun, 15 Dec 2002 04:13:36 -0500
Hi-
I've run into the problem of trying to obtain a Message ID for a message in
a draft window in Entourage v.X. My thinking is that Entrouge might not
create message Ids for messages in draft windows until the message is saved
which makes sense sort of. But even if I save the message, I have no good
way of getting the ID.
This is what I came up with:
tell application "Microsoft Entourage"
set msg_list to messages of folder id 4 whose name is "testing"
--list of all messages with subject "testing" in Drafts
if (count msg_list) > 1 then
--if there are more than one message
repeat with msg in msg_list
set msg_id to ID of msg
if not (exists outgoing message id (msg_id + 1)) then
--is this the last message?
exit repeat
--Yes? Good. We'll take that one
end if
end repeat
else
set msg to item 1 of msg_list
end if
msg
end tell
Not to elegant. I suppose it works, but I thought there would be a better
way of working with messages in the draft windows. However, I don9t' work
much with Entourage, and I know some of the Entourage experts reside on this
list (I'm looking at you Paul :-) ), so if you have any ideas, they would be
much appreciated.
--
I'm listening to What Does Your Sould Look Like (Part 1-Blue Sky Revisit) /
Transmission 3 by DJ Shadow off of Endtroducing.....
_______________________________________________
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.