How to Make a Calculator Snippet with Javascript in TextExpander

Maia Olson Blog, TextExpander, TextExpander Tips

Thanks to the magic of JavaScript snippets, you can make a snippet which acts as a calculator. TextExpander’s ability to execute JavaScript at the time of snippet expansion is one of the features which makes it so powerful. Here is how you can use some of that power in your own snippets. Create a new snippet from the button in …

Automate Expansion of Strings in TextExpander

Greg Scown Blog, TextExpander, TextExpander Tips

Photo by Philip Estrada on Unsplash   TextExpander for macOS 6.2.2 adds a new scripting command: “expand string” to allow automating the expansion of text strings. Here’s an example of how you might use it in AppleScript: tell application “TextExpander” to expand string “ddate :flag-us:” The result: “August 21, 2017 🇺🇸” Note: The example assumes you have the Emoji Cheat …