• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Saving Attachment from Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Saving Attachment from Mail.app (From: Alan Kimelman <email@hidden>)

  • Prev by Date: Re: Eudora users - Did you know that...
  • Next by Date: Re: Saving Attachment from Mail.app
  • Previous by thread: Saving Attachment from Mail.app
  • Next by thread: Re: Saving Attachment from Mail.app
  • Index(es):
    • Date
    • Thread