In this post I contemplated the idea of organizing Shortcuts based on color. After discusssion in that post, I gave up on the idea.
However, after learning a bit more about the Set Name action I decided to go back to my original idea. Thankfully, the correct use of Set Name solved my problem.
This Shortcut parses and displays information about the chosen shortcut:
Create and Edit Dates
Glyph
Icon Color
Widget (yes/no)
Share Sheet enabled (yes/no). If yes, the content types are listed
With this, the Shortcut color (and other attributes) is now actionable. I can use the discrete value to produce a list of Shortcuts of a certain color.
Copy the URL of a shortcut and run mine to see what it does with the shortcut information.
In case you haven’t noticed, the color number, when viewed as an hexadecimal number, has the format RRGGBBFF (the usual RGB format plus an FF meaning “fully opaque”). Unfortunately I haven’t found a comprehensive list of glyphs and numbers.
While I question the true utility of this shortcut I thought I would go ahead and share. Perhaps it will be useful for somebody else…
The shortcut allows you to choose a category (eg, Music, Work, etc) and then select and run a shortcut chosen from the shortcuts organized within that category.
The shortcut assumes Shortcuts are organized by colors that are meaningful (eg, Light Blue = all Music related shortcuts; Purple = all Work related shortcuts, etc)
Setup
The shortcut is dependent on a dictionary that maps colors to categories. That dictionary is setup in this shortcut:
You’ll note logic within the shortcut to flip the keys. The shortcut produces a dictionary formatted as either category=color or color=category. I only want to maintain one list of categories, but needed it in both key-value formats. Thus, this added logic. The one setup step is to edit the table to define your own category color equivalents.
Not useful for colour organisation, (i did something similar with Glyph numbers as I find colours too confusing for organising) but interestingly you can also pull this sort of information from a shared icloud link without installing the shortcut.