Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > mail.app, text attachments & applescript -- HELP

mail.app, text attachments & applescript -- HELP
Thread Tools
Dedicated MacNNer
Join Date: Jul 2003
Status: Offline
Reply With Quote
Sep 28, 2003, 08:59 PM
 
hi all-

when mail.app receives text attachments (usually in .txt, but sometimes w/ other endings, but always a text file), it inserts the text directly into the email body rather than showing as an actually attachment.

does anyone know of a workaround? i'd like it to just show it, but if need be, maybe someone can help me make an applescript to either a) save it to the file the 'raw source' of the email specifies, or b) open up the text in textedit so that it can be saved ...

here is an example raw source header, within the email, right before the text is displayed:

Content-Type: TEXT/plain; name="the_file.tcl"; charset=us-ascii; x-unix-mode=0644
Content-Description: the_file.tcl
Content-MD5: NfzvlfWMzjtdnbogo6B6OQ==

there's got to be some way to have mail.app either show the file as "the_file.tcl" (as an icon, similar to how all attachments show be displayed in mail.app; i prefer this), or write an applescript that would parse the email, look for a raw source heading similar to this, and either save it as a file (file name as listed) in a designated folder (say ~/mail_attachments), or open it up in textedit.

i just don't know how to do any of the above!!

thanks for the input!
     
Dedicated MacNNer
Join Date: Jul 2003
Status: Offline
Reply With Quote
Sep 29, 2003, 09:53 AM
 
< bump >
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Sep 29, 2003, 06:06 PM
 
Originally posted by vancenase:
< bump >
Are you sure?

I see this:

     
Dedicated MacNNer
Join Date: Jul 2003
Status: Offline
Reply With Quote
Sep 29, 2003, 06:46 PM
 
i'm absolutely sure. it could be an issue when the item is sent from a specific type of computer or created on a specific type of computer (i.e. it's a unix-based text file).

i've had it happen to me at least 10 times. i've had to copy and paste the text in to a text file. it's just a huge pain, since the files i'm sent are usually extremely large text files.

how do you have mail.app display your email? html? text?
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Sep 30, 2003, 06:46 AM
 
I'd agree that it's probably the sending client that formatted the mail in a way that mail.app does not seem to handle.

I use HTML display.
     
Fresh-Faced Recruit
Join Date: Feb 2003
Status: Offline
Reply With Quote
Jul 16, 2004, 02:31 AM
 
Originally posted by vancenase:
i'm absolutely sure. it could be an issue when the item is sent from a specific type of computer or created on a specific type of computer (i.e. it's a unix-based text file).

i've had it happen to me at least 10 times. i've had to copy and paste the text in to a text file. it's just a huge pain, since the files i'm sent are usually extremely large text files.

how do you have mail.app display your email? html? text?
I have the same problem. The text file that I received from my customer could not be viewed as an attachment and instead it is shown as gibberish text (or in RAW source). Is there a way to not let mail.app open the txt file and rather display it as an attachment? I had to resort to read it off mail2web.com.
My very first mac: ^_^
Powerbook 12" Rev A 40gb 640mb
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:53 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2