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
- 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.
I started something similar, but decided to go in another direction. But, just in case it gives you some idea for your shortcut, here it is:
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)
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.
This is the main shortcut:
For “simplicity” I broke it into 3 sub-shortcuts:
Create a sorted list of all shortcuts. Each shortcut is represented by a pair: category_name|shortcut_title
Create a dictionary keyed by category. The children of each category node are all of the shortcuts within that category
Prompt for category and then prompt for and run the shortcut within the chosen category
The following is my reference table of color codes and the corresponding icon color
||2 Orange Red
||7 Baby Blue
||9 Midnight Blue
||13 Dark Gray
I’m intrigued as to why these colour codes aren’t in hex.
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.