This little app came about when a friend of mine was complaining about the lack of an 'Uppercase selection' function in Edit.app. Realizing how easy it would be to do, I sat down and did it. It ended up being a moderately useful app that serves as a nice example of a use of the MiscString class (since these all are methods straight out of the class).\
To install, put MiscStringService.app into /LocalApps or your ~/Apps directory. At this point, a 'MiscString' submenu will show up under the 'Services' menu (provided the app that you are currently using allows you to select and replace text somewhere). Under the 'MiscString' submenu, there are nine services provided:\
\b0 This will capitalize the first letter in each word in the selection. Words are separated by any number of whitespaces.\
\b Invert Cases:
\b0 This will invert the case of each letter in the selection. Useful if you've been typing for a bit then realizing you've left your Caps Lock key on accidentally. Command-key:
\b0 \
\b Reverse:
\b0 This will reverse the order of the characters in the selection. If it doesn't seem to change, it's a palindrome. : - ) Command-key:
\b0 \
\b Squash Spaces:
\b0 This will go through the selection and remove all redundant spaces. One space will be left between words, except after a period or colon in which case two spaces will be left. \
\b To Lowercase:
\b0 Converts every character in the selection to its lowercase equivalent. This will work on extended ASCII characters too. Command-key:
\b0 \
\b To Uppercase:
\b0 Converts every character in the selection to its uppercase equivalent. This will work on extended ASCII characters too. Command-key:
\b0 \
\b Trim Lead Spaces:
\b0 This removes any spaces in the beginning of the selection.\
\b Trim Spaces:
\b0 This removes any spaces in the beginning and at the end of the selection.\
\b Trim Tail Spaces:
\b0 This removes any spaces at the end of the selection.\
\pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0\cf0 See the documentation on the MiscString class for further information.\
Four of the menu items above have been given command-key equivalents, as noted. However, these may not show up in every app you use depending if that app already uses that key for something else. For example, Edit.app uses all four of the above characters for other menu items, so none of them will work for these services.\
Also note that this app only copies and pastes in straight ASCII. In other words, if you are using Rich Text Format, any special command codes that might have been in the text will be lost upon replacement. Therefore, exercise a little caution when using this with RTF documents.\
Well, hopefully you will find this little app useful in some way. Please send any suggestions, comments, complaints, improvements, etc., to (preferably) me, Carl Lindberg (lindberg@csnext.colgate.edu), or the current MiscKit administrator, which is currently Don Yacktman (Don_Yacktman@byu.edu). Thank you.\