ShareShortcuts
Fork “SmartDrop”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så 0you får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
20K
Gemt
2
Handlinger
49
Kategori
Produktivitet
Version
2.0
Sprog
EN

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.

Nyheder

Version 2.0

You can now SHARE PHOTOS with Mail Drop! And thanks for 1000 Downloads.

Versionshistorik
2.0 17. nov. 2024

You can now SHARE PHOTOS with Mail Drop! And thanks for 1000 Downloads.

1.4 31. okt. 2024

If the text is too long to be displayed, it will not show up. Changed the text in the menu that prompts you to download Swing Updater from ‘Ignore and skip’ to ‘Skip for now’.

1.3 15. okt. 2024

Moved the update section from the top to the bottom for faster sharing.

1.2 14. okt. 2024

🔥 Hot fix for the update system.

1.1 14. okt. 2024

Added the shortcut ID for updating.

1.0 14. okt. 2024

First release

Hvad den gør

49 handlinger
  1. Get File
  2. If
  3. Text
  4. Set Name
  5. Quick Look
  6. Save File
  7. Stop and Output
  8. If
  9. Generate QR Code
  10. Get Text from Input
  11. Show Alert
  12. If
  13. Save File
  14. Repeat
  15. Get File
  16. If
  17. Wait
  18. Get File
  19. Get Link to File
  20. Generate QR Code
  21. If
  22. Generate QR Code
  23. Quick Look
  24. If
  25. Scan QR/Barcode
  26. Get URLs from Input
  27. If
  28. Open URLs
  29. If
  30. Copy to Clipboard
  31. Count
  32. If
  33. Show Alert
  34. If
  35. Show Alert
  36. Get My Shortcuts
  37. Filter Files
  38. If
  39. Choose from Menu
    ⚠️ | Please install "Swing Updater" to keep this shortcut updated.
  40. Choose from Menu
    ⬇️ | Install from ShareShortcuts
  41. Open URLs
  42. Stop This Shortcut
  43. Choose from Menu
    ⬇️ | Install from Routinehub
  44. Open URLs
  45. Stop This Shortcut
  46. Choose from Menu
    ✖️ | Skip for now
  47. If
  48. Dictionary
  49. Run Shortcut
    Swing Updater

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#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)
}
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra 0you

Se alle

Du vil måske også kunne lide

Se alle
Annonce