Unwrapping mail
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