ShareShortcuts
Создать форк «SmartDrop»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы 0you получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
20K
Сохранено
2
Действия
49
Категория
Productivity
Версия
2.0
Язык
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.

Что нового

Версия 2.0

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

История версий
2.0 17 ноя 2024 г.

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

1.4 31 окт 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 окт 2024 г.

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

1.2 14 окт 2024 г.

🔥 Hot fix for the update system.

1.1 14 окт 2024 г.

Added the shortcut ID for updating.

1.0 14 окт 2024 г.

First release

Что делает

Действий: 49
  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

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#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)
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от 0you

См. все

Вам также может понравиться

См. все
Реклама