ShareShortcuts

iPCU

You can make webclips threw shortcuts!

gingey
Fork “iPCU”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so gingey gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
52K
Saved
1
Actions
18
Category
Fun
Version
1.0
Language
EN

You can make webclips threw shortcuts! Note that this was not made by me i’m just posting it on this website so its easier to dow

What's New

Version 1.0

First release

Version History
1.0 May 5, 2021

First release

What it does

18 actions
  1. Ask for Input
    Profile Name
  2. Set Variable
    Name
  3. Ask for Input
    Profile Maker/Developer
  4. Set Variable
    Dev
  5. Ask for Input
    Consent Text
  6. Set Variable
    Consent
  7. Ask for Input
    Description
  8. Set Variable
    Description
  9. Ask for Input
    Web Clip Name
  10. Ask for Input
    URL
  11. Ask for Input
    Identifier
  12. Select Photos
  13. Base64 Encode
  14. Text
  15. Set Name
  16. Choose from Menu
  17. Choose from Menu
    Share
  18. Share

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/sharing'
#include 'actions/photos'
#define glyph paperclip

@Name = prompt("Profile Name")
prompt("Profile Maker/Developer")
@Dev
prompt("Consent Text")
@Consent
prompt("Description")
@Description
const WebClipName = prompt("Web Clip Name")
const URL = prompt("URL")
const Identifier = prompt("Identifier")
const Photos = selectPhotos()
base64Encode(Photos)
const Text = "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\r\n<!DOCTYPE plist PUBLIC \\"-//Apple//DTD PLIST 1.0//EN\\" \\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\\">\r\n<plist version=\\"1.0\\">\r\n<dict>\r\n<key>ConsentText</key>\r\n<dict>\r\n<key>default</key>\r\n<string>{@Consent}</string>\r\n</dict>\r\n <key>PayloadContent</key>\r\n <array>\r\n   <dict>\r\n     <key>FullScreen</key>\r\n     <true/>\r\n     <key>Icon</key>\r\n     <data>{}</data>\r\n     <key>IsRemovable</key>\r\n     <true/>\r\n     <key>Label</key>\r\n     <string>{WebClipName}</string>\r\n     <key>PayloadDescription</key>\r\n     <string>Adds a Web Clip.</string>\r\n     <key>PayloadDisplayName</key>\r\n     <string>Web Clip ({WebClipName})</string>\r\n     <key>PayloadIdentifier</key>\r\n     <string>{Identifier}</string>\r\n     <key>PayloadOrganization</key>\r\n     <string>{@Dev}</string>\r\n     <key>PayloadType</key>\r\n     <string>com.apple.webClip.managed</string>\r\n     <key>PayloadUUID</key>\r\n     <string>c3b2c123-6253-464e-afde-0d987400da0f</string>\r\n     <key>PayloadVersion</key>\r\n     <integer>1</integer>\r\n     <key>Precomposed</key>\r\n     <false/>\r\n     <key>URL</key>\r\n     <string>{URL}</string>\r\n   </dict>\r\n </array>\r\n <key>PayloadDescription</key>\r\n <string>{@Description}</string>\r\n <key>PayloadDisplayName</key>\r\n <string>{@Name}</string>\r\n <key>PayloadIdentifier</key>\r\n <string>{Identifier}</string>\r\n <key>PayloadOrganization</key>\r\n <string>{@Dev}</string>\r\n <key>PayloadRemovalDisallowed</key>\r\n <false/>\r\n <key>PayloadType</key>\r\n <string>Configuration</string>\r\n <key>PayloadUUID</key>\r\n <string>345097fb-d4f7-4a34-ab90-2e3f1ad62eed</string>\r\n <key>PayloadVersion</key>\r\n <integer>1</integer>\r\n</dict>\r\n</plist>"
const RenamedItem = setName(Text, "{@Name}.mobileconfig")

menu nil {
item "Share":
	share(RenamedItem)
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by gingey

See All

You Might Also Like

See All
Advertisement