New answers tagged


If this is something you find yourself needing to do fairly often (and, for some reason, don't wish to have to use Script Editor), then one way to do this is to create a systemwide Service (or Quick Action) in Automator: It will be set to receive text in any application and ensure that the Output replaces selected text. Once saved, you can select the text ...


You can't execute AppleScript directly from TextEdit. Apple provides an AppleScript editor though in /Applications/Utilities/Script\ which makes it easy to create and run AppleScript code. Just navigate to /Applications/Utilities in Finder, run Script Editor and copy/paste your code into it.


Put in on the desktop, then you can change it, then put it back in the folder where it was before (tested on mac mojave 10.14.6)

Top 50 recent answers are included