You quickly want to share a large text, link or a photo with the person standing next to you, but you don‘t have internet connection and your AirDrop doesn’t do the job? That is not a problem anymore! Just share the text with this shortcut and, without selecting anything, a QR-Code will show up. The other person can scan it and has the text in the clipboard, ready to use.
Links will be automatically opened, no need to paste the link in your browser.
This shortcut uses 'Swing Updater' for updating. It is highly recommend to install it.
What's New
You can now SHARE PHOTOS with Mail Drop! And thanks for 1000 Downloads.
What it does
49 actions-
Get File
-
If
-
Text
-
Set Name
-
Quick Look
-
Save File
-
Stop and Output
-
If
-
Generate QR Code
-
Get Text from Input
-
Show Alert
-
If
-
Save File
-
Repeat
-
Get File
-
If
-
Wait
-
Get File
-
Get Link to File
-
Generate QR Code
-
If
-
Generate QR Code
-
Quick Look
-
If
-
Scan QR/Barcode
-
Get URLs from Input
-
If
-
Open URLs
-
If
-
Copy to Clipboard
-
Count
-
If
-
Show Alert
-
If
-
Show Alert
-
Get My Shortcuts
-
Filter Files
-
If
-
Choose from Menu⚠️ | Please install "Swing Updater" to keep this shortcut updated.
-
Choose from Menu⬇️ | Install from ShareShortcuts
-
Open URLs
-
Stop This Shortcut
-
Choose from Menu⬇️ | Install from Routinehub
-
Open URLs
-
Stop This Shortcut
-
Choose from Menu✖️ | Skip for now
-
If
-
Dictionary
-
Run ShortcutSwing Updater
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/text'
#include 'actions/documents'
#define color teal
#define glyph airplayAudio
const Datei = getFileFromFolder(, "SmartDrop/Welcome1000Downloads.html", false)
if !Datei {
const Text = "<!-- code generated with ScreenKit by alombi (© alombi 2020)-->\n<!DOCTYPE html>\n<html lang=\\"en\\">\n <head>\n <meta charset=\\"utf-8\\">\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\n \n </head>\n <style>\nb{\n color:#007AFF;\n }\n body {\n background-color:#f2f2f2;\n color:#333333;\n text-align: center;\n font-family: system-ui;\n padding: 5%;\n margin:auto;\n max-width: 650px;\n overflow-x: hidden;\n }\n p{\n font-size: 20px;\n }\n h1{\n font-size:45px;\n font-weight:800;\n background:linear-gradient(to bottom right,rgba(66,170,233,1) 0%,rgba(54,163,231,1) 90%);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n .alt{\n font-weight:400;\n }\n h2{\n font-size: 25px;\n font-weight:300;\n margin-top:-38;\n }\n h4{\n font-size: 25px;\n font-weight:300;\n }\n h3{\n font-size: 24px;\n font-weight:600;\n color:#be76bf;\n }\n @media (prefers-color-scheme: dark) {\n body {\n background-color:#1C1C1E;\n color: #f1f1f1;\n }\n #transaction {\n background-color: #191919;\n box-shadow: none;\n }\n p {\n color: #AAAAAA;\n }\n }\n\n </style>\n <body>\n\t\t<h1>SmartDrop</h1>\n <h3>Want to share links/text quickly?</h3>\n<h2>Thank you for <b>1000 Downloads</b>! Make sure to <b>like</b> the shortcut!</h2>\n<h3>----------</h3>\n <p><b>SmartDrop</b> gives you the power of sharing links, text <b>and photos</b> with others using QR-Codes (and Mail Drop for photos).</p>\n<p>To <b>share</b> something, you have to share the URL, text or photo with SmartDrop. A QR-Code will be automatically generated for you.</p>\n<p>To <b>receive</b> something, just run this shortcut and scan the QR-Code. If the type is a URL, it will be opened. Of course the QR-Code can also be scanned with other programs.</p>\n <h5>In order to get started, please click <b>Done</b> in the top right corner.</h5>\n </body>\n</html>\n "
const UmbenanntesObjekt = setName(Text, "Welcome1000Downloads.html", false)
quicklook(UmbenanntesObjekt)
saveFile("SmartDrop/Welcome1000Downloads.html", UmbenanntesObjekt, true)
output("")
}
if ShortcutInput {
const QRCode = makeQRCode(ShortcutInput, [{float 0} {float 0} {float 0} {float 1}], [{float 2} {float 2} {float 2} {float 1}])
const Text1 = getText(QRCode)
confirm(Text1)
if Text1 beginsWith "IMG_" {
saveFile("SmartDrop/Shared with ShareShortcuts.jpeg", ShortcutInput, true)
repeat _ for 20 {
const Datei1 = getFile("SmartDrop/Shared with ShareShortcuts.jpeg", false)
if !Datei1 {
wait(5)
}
}
const Datei2 = getFile("SmartDrop/Shared with ShareShortcuts.jpeg", false)
getFileLink(Datei2)
makeQRCode(, [{float 0} {float 0} {float 0} {float 1}], [{float 2} {float 2} {float 2} {float 1}])
} else {
makeQRCode(ShortcutInput, [{float 0} {float 0} {float 0} {float 1}], [{float 2} {float 2} {float 2} {float 1}])
}
quicklook(WennErgebnis)
} else {
rawAction("is.workflow.actions.scanbarcode", {})
const URLs = getURLs(QRStrichcode)
if URLs {
openURL(URLs)
} else {
setClipboard(QRStrichcode, true)
const Anzahl = count(, "Characters")
if Anzahl > 60 {
confirm("⛓️💥 | The QR-Code doesn't contain a URL.\n\nIt contains something too looong to be displayed here.\n\nIt has been copied to your clipboard.")
} else {
confirm("⛓️💥 | The QR-Code doesn't contain a URL.\n\nIt contains the following: \"{QRStrichcode}\n\nIt has been copied to your clipboard.")
}
}
}
const MeineKurzbefehle = getShortcuts()
const Dateien = filterFiles(MeineKurzbefehle)
if !Dateien {
menu "⚠️ | Please install \"Swing Updater\" to keep this shortcut updated." {
item "⬇️ | Install from ShareShortcuts":
openURL("https://shareshortcuts.com/shortcuts/726-swing-updater.html")
stop()
item "⬇️ | Install from Routinehub":
openURL("https://routinehub.co/shortcut/2692/")
stop()
item "✖️ | Skip for now":
}
} else {
const Wrterbuch = {
"Name": "SmartDrop",
"SS ID": 2940,
"Timeout": 15,
"Version": "2.0"
}
run("Swing Updater", Wrterbuch)
}
Ratings & Reviews
Write a ReviewNo reviews yet. Be the first to share what you think!