Jump to content

Text Formatting Snippets?

Recommended Posts

  • 1 year later...

One exception to this rule is you can change the casing to your most recent clipboard item using snippets


will turn: HeLLO HoW aRE You?
to: hello how are you?

Note that there are some advanced scripting features you may be able to do using workflows. But I'm not familiar with their capabilities and may require a bit of savvy to setup. 

Link to comment
On 12/02/2018 at 5:10 PM, BrianBarr said:

But I'm not familiar with their capabilities and may require a bit of savvy to setup. 


With workflows, you can do more or less anything with a snippet because you're using a snippet to call your own code. It's more a question of what's practical, given how much more time & skill implementing snippets via Snippet Triggers can take.

Link to comment
  • 1 year later...


Late to the party, but I think I found a way to use dynamic placeholders and get some basic rich text capability without a RTF file or any AppleScriptObjC kung-foo. For example, I like to add a date stamp if I reply to email inline. By typing \\ctv, I get  [TV 03 Apr 19] or whatever the date is automagically.


Achieved it with the flow in the workflow below. I've added a screen shot of what the "Copy to clipboard" includes in it. This works in Pages and this forum. So not thoroughly vetted, but something to work with.


The initial problem seemed to be the copy from clipboard would "overwrite" the invisible element initially sent with the key combo, in my case the bold. Adding the space after the key combo seems to make the result more consistent. It may not line up the way you want, but the tradeoff is something working consistently. 


Other observations are that even with the {cursor} placeholder giving me a space after the closing bracket, I still need to hit the spacebar before I can manually turn off the bold by hitting the key combo again. This isn't a problem in practice because I'm making a comment and will enter some text anyway (which will also be bolded). I tried adding the key combo again after the "Copy to clipboard", but that really did nothing except make things function inconsistently again.


If it helps you, great. If it doesn't, no harm.


Screen Shot 2019-04-03 at 21.39.31.png

Screen Shot 2019-04-03 at 21.44.43.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...