ShareShortcuts

Make app from URL

Testing!

coltensus
Fork “Make app from URL”

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 coltensus 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
37K
Saved
1
Actions
12
Category
API
Version
1.0
Language
EN

Testing!

What's New

Version 1.0

First release

Version History
1.0 Nov 25, 2022

First release

What it does

12 actions
  1. Ask for Input
    Name
  2. Set Variable
    Name
  3. Ask for Input
    URL
  4. Select Photos
  5. Base64 Encode
  6. Text
  7. Set Name
  8. Set Name
  9. Base64 Encode
  10. URL
    data:application/x-apple-aspen-config;base64,…
  11. Open URLs
  12. Copy to Clipboard

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/web'
#include 'actions/photos'
#define color taupe
#define glyph paperclip

@Name = prompt("Name")
const URL = prompt("URL")
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>Choose 'Install' and enter passcode if prompted.</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>{@Name}</string>\r\n     <key>PayloadDescription</key>\r\n     <string></string>\r\n     <key>PayloadDisplayName</key>\r\n     <string>Web Clip ({@Name})</string>\r\n     <key>PayloadIdentifier</key>\r\n     <string>Me</string>\r\n     <key>PayloadOrganization</key>\r\n     <string>Me</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>Turn any website into an app on your home screen</string>\r\n <key>PayloadDisplayName</key>\r\n <string>{@Name}</string>\r\n <key>PayloadIdentifier</key>\r\n <string>Me</string>\r\n <key>PayloadOrganization</key>\r\n <string>Me</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)
const RenamedItem = setName(RenamedItem, "{@Name}.mobileconfig")
base64Encode(RenamedItem)
const URL1 = url("data:application/x-apple-aspen-config;base64,{}")
openURL(URL1)
setClipboard(URL1)
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 coltensus

See All

You Might Also Like

See All
Advertisement