• 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: Unwrapping mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unwrapping mail


  • Subject: Re: Unwrapping mail
  • From: Adam Bell <email@hidden>
  • Date: Sat, 29 Jul 2006 21:05:51 -0300

Title: Re: Unwrapping mail
Thanks for uploading it to ScriptBuilders, Michelle. Odd that SmartWrap is broken for the latest Mail. It still works for me in Eudora 6.2.4b5 under OS X 10.4.7 on a PM G5, so it must be Mail that broke it rather than Tiger (unless you're running an Intel box?).

Adam Bell
ScriptBuilders.net | Admin

At 4:25 PM -0700 7/29/06, Michelle Steiner wrote:
There is no convenient way to unwrap text in email. Mail softwraps text in outgoing messages, but many servers, list servers, and clients convert them to hard wrapped text. There is a utility called Smartwrap that handled this, but it is broken under Tiger. This script will do a simple unwrap; it is not as sophisticated as Smartwrap, but it can handle simple jobs. 

It takes advantage of the freeware TextWrangler from Bare Bones Software. 

To use the script, select the text in an outging message window, and run the script.

tell application "Mail"
        activate
        set the clipboard to ""
        tell application "System Events" to keystroke "c" using command down
        my unwrap()
        activate
        tell application "System Events" to keystroke "v" using command down
end tell

to unwrap()
        tell application "TextWrangler"
                set foo to make new document
                set the contents of foo to the clipboard
                select the text of foo
                remove line breaks the selection
                copy the selection
                close foo saving no
        end tell
end unwrap

--
Failure is not an option.  It comes bundled with the software.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
>esscable.net

This email sent to email@hidden

 _______________________________________________
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

  • Follow-Ups:
    • Re: Unwrapping mail
      • From: Michelle Steiner <email@hidden>
References: 
 >Unwrapping mail (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Unwrapping mail
  • Next by Date: Re: Unwrapping mail
  • Previous by thread: Unwrapping mail
  • Next by thread: Re: Unwrapping mail
  • Index(es):
    • Date
    • Thread