| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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: http://lists.apple.com/mailman/options/applescript-users/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.