shortcuts-js
shortcuts-js copied to clipboard
new way of exporting the shortcuts
I changed step 2 to reflect the solution in issue #217. I also provided a new shortcut (url) with email capability
Checks
- [x] I've checked there are no linting errors.
- [x] I've checked the code is still at 100% test coverage.
Added Actions (if relevant)
Are you happy to be listed as a contributor on Shortcuts.fun?
Yes
Any other information / comments
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities (and
0 Security Hotspots to review)
0 Code Smells
Why hasn't this been merged yet?, just found the project and ran directly into the issue
Is this something I should do, as the owner of the pull request? I’m sorry I’m not familiar with the procedure.
René
—/—
Op 25 okt. 2020 om 15:58 heeft Slick Kilmister [email protected] het volgende geschreven:
Why hasn't this been merged yet?, just found the project and ran directly into the issue
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
@rlb222 No need to apologize. No it's not up to you. this has to be done by someone with push-access to the repo. I'm just wondering why this hasn't been merged.
Thanks! And I’m wondering as well 🙂 now.
René
—/—
Op 25 okt. 2020 om 16:54 heeft Slick Kilmister [email protected] het volgende geschreven:
@rlb222 No need to apologize. No it's not up to you. this has to be done by someone with push-access to the repo. I'm just wondering why this hasn't been merged.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Yep! It's only my lack of diligence that's prevented this from being merged! I've not given the repo the care it deserves of late.
When I'm next with my laptop I'll get this merged in, that will be early next week.
👀
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 https://github.com/joshfarrant/shortcuts-js/issues/683#issuecomment-1548831442
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.plist
or
plutil -convert json -e plist.json -- the-downloaded-shortcut.plist
(Crossposted: https://www.reddit.com/r/shortcuts/comments/13h61hv/comment/jl4dw28/)
Originally posted by @0xdevalias in https://github.com/joshfarrant/shortcuts-js/issues/683#issuecomment-1556546326
Originally posted by @0xdevalias in https://github.com/joshfarrant/shortcuts-js/issues/217#issuecomment-1556564018