Re: Mail scripting
Re: Mail scripting
- Subject: Re: Mail scripting
- From: Hudson Barton <email@hidden>
- Date: Thu, 21 Apr 2005 21:11:22 -0400
What is the syntax to save a message in "Mail" to a text file in a
specific folder as plain text?
tell application "Mail"
set y to (selected messages of message viewers) as list
set y to item 1 of item 1 of y
set y to content of y
end tell
tell application "Finder"
make new file
set x to result as alias
open for access x with write permission
write y to x
close access x
end tell
Regards,
H.
_______________________________________________
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