Scan with your iPhone to install
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
What it does
18 actions-
Ask for InputProfile Name
-
Set VariableName
-
Ask for InputProfile Maker/Developer
-
Set VariableDev
-
Ask for InputConsent Text
-
Set VariableConsent
-
Ask for InputDescription
-
Set VariableDescription
-
Ask for InputWeb Clip Name
-
Ask for InputURL
-
Ask for InputIdentifier
-
Select Photos
-
Base64 Encode
-
Text
-
Set Name
-
Choose from Menu
-
Choose from MenuShare
-
Share
View as code
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
You Might Also Like
Advertisement