Re: Saving Attachment from Mail.app
Re: Saving Attachment from Mail.app
- Subject: Re: Saving Attachment from Mail.app
- From: John Delacour <email@hidden>
- Date: Fri, 21 Mar 2003 08:59:33 +0000
- Mac-eudora-version: 6.0a11
At 12:18 am -0800 21/3/03, Alan Kimelman wrote:
I would like to explore the issue of saving an attachment from Mail.app.
I explained how to do this a few days ago:
At 2:21 pm +0000 5/3/03, I wrote:
I don't understand why Stuffit won't do this without Mac line
endings, but that seems to be the case. Surely Stuffit should
accept any line ending -- besides I'm sure I had it working
yesterday without changing the line endings.
set f to "" & (path to "desk") & "temp.txt"
tell application "Mail"
selection
first item of result
set s to source of result
end tell
(* Replace Mail's new lines with Mac line endings *)
set my text item delimiters to ASCII character 10
set ls to text items of s
set my text item delimiters to return
set s to ls as string
set my text item delimiters to ""
try
close access file f
end try
open for access file f with write permission
set eof file f to 0
write s to file f
close access file f
tell application "StuffIt Expander"
Expand {alias f} Destination (path to desktop)
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.