Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new way of exporting the shortcuts #474

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

new way of exporting the shortcuts #474

wants to merge 1 commit into from

Conversation

rlb222
Copy link

@rlb222 rlb222 commented Jun 2, 2020

I changed step 2 to reflect the solution in issue #217.
I also provided a new shortcut (url) with email capability

Checks

  • I've checked there are no linting errors.
  • 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

I changed step 2 to reflect the solution in issue #217.
@sonarcloud
Copy link

sonarcloud bot commented Jun 2, 2020

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

@KilianKilmister
Copy link

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

@rlb222
Copy link
Author

rlb222 commented Oct 25, 2020 via email

@KilianKilmister
Copy link

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

@rlb222
Copy link
Author

rlb222 commented Oct 25, 2020 via email

@joshfarrant
Copy link
Owner

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.

@pvinis
Copy link

pvinis commented Jul 25, 2021

👀

@0xdevalias
Copy link

You may also find some benefit in something like this:

Originally posted by @0xdevalias in #683 (comment)

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 #683 (comment)

Originally posted by @0xdevalias in #217 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants