This is a very simple script that will change selected text (in a message or
a contact field) to Title Case (words capitalized). It requires Kamprath's
Text Utilities scripting addition, which can be downloaded for free from:
<http://www.osaxen.com/index.php3?id=text_utilities>
When I post this script on my web site (I have not posted any Microsoft
Entourage scripts there yet, but I'll get to it soon; I'm converting some of
my OE scripts first), I will include Kamprath's with it for easy download;
it is very small. It should be placed in your Scripting Additions folder
(inside System folder).
This particular script was prompted by the earlier request for a script to
"title case" fields in the address book. Paul's elegant script does that for
multiple fields and records very well. This script is intended for "one
shot" changes such as single fields, or text within messages.
----- Title Case Selection -- Begin Script -------
tell application "Microsoft Entourage"
try
set t to the selection
if class of t is not string then
error "This script works only on selected text."
error -128
end if
set t to set capitalization in t to word capitalization
copy t to the selection
on error theErr
display dialog theErr
end try
end tell
---- End Script ---------
--
Peace,
Allen Watson <[EMAIL PROTECTED]> XNS name: =Allen Watson
A Mac family since 1984
My web page: <http://home.earthlink.net/~allenwatson/>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>