Looks like a saved a shortcut, not realizing I had deleted an action with a regex pattern that took forever to hone. Now the change has propagated to all my devices, and I can’t find a way to restore the previous version.
Is all hope lost, or is there a way to retrieve an older version?
Okay by where are shortcuts stored in the file system? I’m talking shortcuts as in Workflows created in the Shortcuts app, not an application link/shortcut. (God i wish Apple had stuck with Workflows and not switched terminology to something confusing and impossible to google for)
Today I also accidentally deleted a very important Shortcut (the one I daily use to turn off my alarm clock) that would be rather hard to recreate from scratch, since it contains an inline Scriptable script which executes a PUT request to a specific URL with a specific body and I did not have that documented anywhere…
Many kudos to @MevetS and @karlnyhus for enabling me to quickly get that crucial info back, because they mentioned Time Machine and the location of Shortcuts in this topic!
In case it will help someone else (possibly even me) in the future, here’s a summary of what I did:
Navigate to ~/Library/Shortcuts of a previous date in Time Machine
Copy that entire Shortcuts folder to another location