shortcuts-js icon indicating copy to clipboard operation
shortcuts-js copied to clipboard

new way of exporting the shortcuts

Open rlb222 opened this issue 4 years ago • 8 comments

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

rlb222 avatar Jun 02 '20 07:06 rlb222

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarcloud[bot] avatar Jun 02 '20 07:06 sonarcloud[bot]

Why hasn't this been merged yet?, just found the project and ran directly into the issue

KilianKilmister avatar Oct 25 '20 14:10 KilianKilmister

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 avatar Oct 25 '20 15:10 rlb222

@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.

KilianKilmister avatar Oct 25 '20 15:10 KilianKilmister

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.

rlb222 avatar Oct 25 '20 16:10 rlb222

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.

joshfarrant avatar Oct 25 '20 16:10 joshfarrant

👀

pvinis avatar Jul 25 '21 00:07 pvinis

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

0xdevalias avatar May 22 '23 05:05 0xdevalias