Keyboard hotkeys (macOS)
- Cmd + â/â 1
- Cmd + D 2
- Cmd + Backspace 3
- Cmd + N 4
- Cmd + R 5
- Cmd + Shift + A 6
- Cmd + Shift + C 7
- Cmd + Shift + I 8
- Cmd + Shift + R 9
- Cmd + Shift + S 10
Tips & tricks to minimize # of actions used
- When using âSet Dictionary Valueâ to create a dictionary, you can leave the dictionary field blank on the right instead of adding a separate âDictionaryâ action and referencing it.
- When handling nested dictionaries and arrays, use Dot Notation (e.g.,
myDict.key1.key2ormyArray.0.key) to access values directly in one stepâinstead of chaining multiple âGet Value from Dictionaryâ actions. This approach makes complex data structures much easier to manage, especially when dealing with data from APIs or JSON. - When formatting dates, wrap literal charactersâsuch as punctuation,
'T','Z', or any static textâin single quotes to treat them as fixed text. This allows you to build custom date-time formats likeyyyy-MM-dd'T'HH:mm:ss'Z'in a single step without chaining multiple Format Date actions. For example, useyyyy'_Week_'wwto combine the year and week number in a single action, rather than using 2 separate Format Date actions foryyyyandww.
Things I wished Iâd known earlier
- Using the âMatch Textâ action with the regular anchor ^keyword provides more reliable results compared to using the built-in âBegins Withâ condition.
- On macOS, you can instantly replace selected text in placeâno need to copy and paste manually. Just select the text and trigger your shortcut with a keyboard shortcut. This is especially helpful for repetitive formatting tasks like slugifying or hyperlinking text.
Good practices
- Add a âStop This Shortcutâ action at the end of each shortcut to prevent unintended side effects, especially when dealing with conditional logic or automation.
- Why Itâs a Good Practice: * Prevents Unwanted Execution: Ensures that no additional actions run accidentally, especially if the shortcut is triggered by another shortcut or automation. * Improves Debugging: Clearly marks the endpoint, making it easier to understand where execution stops. * Avoids Redundant Processing: If a shortcut continues running unnecessarily, it can consume resources or cause unexpected behavior.
- When You Might Skip It: * If a âStop and Outputâ Action Exists: This already terminates the shortcut and returns a value, so an additional stop action isnât needed. * For Simple Shortcuts: If your shortcut only has a few actions and no branching logic, it may not be necessary.
- In general, if your shortcut has multiple conditions, loops, or external triggers, adding âStop This Shortcutâ at the end is a good habit.
Testing
- Use Siri to run a shortcut by simply saying its name. For example, say, âHey Siri, Turn off Color Filters.â