Script Kit
by John Lindquist
Open main menu
Free Tutorials
Tips
Community Scripts
Docs
Discuss
Blog
Scripts
/
John Lindquist
/
Title Case
Install
Add to Kit.app
John Lindquist
// Menu: Title Case
// Description: Converts the selected text to title case
// Author: John Lindquist
// Twitter: @johnlindquist
let
{
titleCase
}
=
await
npm
(
"title-case"
)
let
text
=
await
getSelectedText
(
)
let
titleText
=
titleCase
(
text
)
await
setSelectedText
(
titleText
)