Re: Need help with AppleScript that converts a selected string of words to "Title Case"

2015-10-20 Thread Michelle
Hello, Fletcher, Thanks! It's a big improvement over my original. However, it's still not quite 100% there. Couple things: 1. I need it to change "THE" and "The" to "the" (and the same for all of the other words that I listed). Currently, it leaves lower-case "the" uncapitalized, which i

Re: Need help with AppleScript that converts a selected string of words to "Title Case"

2015-10-20 Thread Fletcher Sandbeck
I found a regular expression online and adapted it for BBEdit. If you replace the else conditional of your script with this it seems to work. tell application "BBEdit" tell window 1 if (selection as text) is "" then set cursorPoint to characterOffset of selection find "\\b\\w" o

Need help with AppleScript that converts a selected string of words to "Title Case"

2015-10-20 Thread Michelle
Can anyone help me with this? I have the following, very helpful AppleScript that capitalizes the first letter of every word that I select/highlight: tell application "BBEdit" tell window 1 if selection as text is "" then set cursorPoint to characterOffset of selection find "\\b\\w" options