A few notes on decompiling Apple Shortcuts workflows into their raw XML 'source code'.
You may also find some benefit in something like this:
- https://routinehub.co/shortcut/5256/
Shortcut Source Tool: View, convert, save source in plist or json, edit and import back to Shortcuts, review in browser
Originally posted by @0xdevalias in joshfarrant/shortcuts-js#683 (comment)
Crossposted: https://www.reddit.com/r/shortcuts/comments/13h61hv/comment/jl4be0p/
Looking a little closer at that shortcut, the main bit of functionality seems to basically be modifying the iCloud Share URL slightly:
Given a URL like this:
https://www.icloud.com/shortcuts/ABC12
It becomes:
https://www.icloud.com/shortcuts/api/records/ABC123
Then extracts the following from the JSON on that page:
- the URL for the unsigned shortcut file (which is an 'Apple binary property list' file):
fields -> shortcut -> value -> downloadURL
- the name of the shortcut workflow:
fields -> name -> value
We can then convert that binary plist file to XML or JSON using
plutil
(though when I tried the JSON format I got an error (invalid object in plist for destination format
), so might have to stick to XML):plutil -convert xml1 -e plist.xml -- the-downloaded-shortcut.plistor
plutil -convert json -e plist.json -- the-downloaded-shortcut.plist
Originally posted by @0xdevalias in joshfarrant/shortcuts-js#683 (comment)
Crossposted: https://www.reddit.com/r/shortcuts/comments/13h61hv/comment/jl4dw28/
- Gist Announcement Tweet: https://twitter.com/_devalias/status/1660516786826264585
- https://shortcuts.fun/
-
Create Apple Shortcuts using JavaScript
- https://github.com/joshfarrant/shortcuts-js
-
A JavaScript iOS 12 Shortcuts creator
- joshfarrant/shortcuts-js#683
-
Looking for new maintainers
-
-
-
- https://www.reddit.com/r/shortcuts/comments/13h61hv/gpt4_can_write_shortcuts/
-
GPT4 can write shortcuts
-