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
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
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