[SE2] Script to copy selection for mail
[SE2] Script to copy selection for mail
- Subject: [SE2] Script to copy selection for mail
- From: John Delacour <email@hidden>
- Date: Thu, 6 Mar 2003 14:57:17 +0000
- Mac-eudora-version: 6.0a9
Here's a script for SE2's contextual menu.
Styled text, tabs and UNIX line endings are undesirable in mail, so
this script get rid of all that and gives you plain text on the
clipboard.
All I need now is a two-button mouse. What Kensington's Optical
Elite like -- or has anyone any recommendations.
(* Script Editor Script: "Copy selection for mail" *)
set s to (get the contents of selection in the front document)
if s is "" then return beep
set text item delimiters to ASCII character 10
set ls to text items of s
set text item delimiters to return
set s to ls as string
set text item delimiters to tab
set ls to text items of s
set text item delimiters to space & space
set s to ls as string
set text item delimiters to ""
set s to s as record
set the clipboard to <<class ktxt>> of s -- USE PROPER GUILLEMETS !!
return the clipboard
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.