Stuart Breckenridge

UUIDs with TextExpander

I recently needed a way generate UUIDs on-the-fly with TextExpander to uniquely tag some documentation.

I found this article on Never Stop Building which got me started. While it uses Famkruithof to get its UUID, there’s a much easier way to do it locally:

  • Create a new snippet
  • Change its content type to ‘Shell Script’
  • Paste in the following code:
#!/bin/bash
uuidgen
  • Pick your own abbreviation (like NSB, I use ;uuid)

Then, whenever you need a new UUID, you just type ;uuid and the output will look something like 56862470-66B3-49FB-A6DD-4BB9C386EFB9.


Supported by