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

Unwrapping mail


  • Subject: Unwrapping mail
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 29 Jul 2006 16:25:51 -0700

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Unwrapping mail
      • From: Doug McNutt <email@hidden>
    • Re: Unwrapping mail
      • From: Dan Doughtie <email@hidden>
    • Re: Unwrapping mail
      • From: Andrew Brosnan <email@hidden>
    • Re: Unwrapping mail
      • From: Adam Bell <email@hidden>
  • Prev by Date: Re: FileMaker Web Viewer
  • Next by Date: Re: Unwrapping mail
  • Previous by thread: Re: (OT) FileMaker Web Viewer
  • Next by thread: Re: Unwrapping mail
  • Index(es):
    • Date
    • Thread