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

2023-11-27 Thread Doug Parker
Eight years later, I posted the question to ChatGPT, took some of its suggestions, and now I have an Automator Quick Action that runs an Applescript that uses BBEdit's make title case as a service on my iMac. BBEdit's title case leaves unimportant words like "a," "and," and "the" lowercase unle

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

2015-10-29 Thread Christopher Stone
On Oct 28, 2015, at 20:15, Michelle wrote: > I ended up going with Christopher's solution because there is a lot less code > and the one-per-line "white list" feature is super convenient and easy to > edit/use. __ We aim to ple

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

2015-10-28 Thread Michelle
ChristianBoyce and Christopher Stone: Thank you so very much for your help! I ended up going with Christopher's solution because there is a lot less code and the one-per-line "white list" feature is super convenient and easy to edit/use. Thanks again! For anyone else who is interested, follow

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

2015-10-21 Thread Christopher Stone
On Oct 20, 2015, at 20:21, Michelle wrote: > 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: __ Hey Michelle, This sort of

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

2015-10-21 Thread Christian Boyce
Hi Michelle. I did this a few years ago and modified it a few times too. You will find an array of words that you want to keep lowercase in the script— first you see the array capitalized, then you see it lowercase (the way you want it). I found, after using my original script, that there were

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

2015-10-21 Thread TJ Luoma
I have noticed this with most “titlecase” programs that I have tried. My solution has been to first make everything lowercase and then apply the titlecase, which seems to work more reliably. YMMV. TjL On 21 Oct 2015, at 2:23, Michelle wrote: Hello, Fletcher, Thanks! It's a big improvem

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