Script to Copy/Paste Entourage Message Bodies
Script to Copy/Paste Entourage Message Bodies
- Subject: Script to Copy/Paste Entourage Message Bodies
- From: Ramona Rock <email@hidden>
- Date: Mon, 24 Mar 2003 17:03:40 -0800
Hi there. I'm a relative newbie, and I'm desperately trying to write what I
thought would be a fairly simple script to take the messages out of a folder
which I would designate by title in Entourage, copy their message bodies (I
don't want the subject or any other header info), paste them into a TextEdit
document on my desktop, then move those messages into another folder. (My
original plan was to paste it into an MS Word document, but after the
discussion earlier today re: the difficulty in scripting MS Word, I thought
I'd go with TextEdit instead.)
Here is what I have so far, in part via help from Andrew on this list
(thanks Andrew) but I still can't get it to work. The last error I got was
"TextEdit got an error: document ":desktop:newstuff" doesn't understand the
open message."
Could someone tell me what I'm doing wrong? I'd be most appreciative!
Thanks! Ramona
tell application "TextEdit"
open document ":desktop:newstuff"
end tell
tell application "Microsoft Entourage"
repeat with aMessage in folder "New Stuff"
set theBody to content of aMessage
tell application "TextEdit"
write theBody to "newstuff"
end tell
move aMessage to folder "Archived"
end repeat
end tell
_______________________________________________
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.