ShareShortcuts

Virtual Clipboard

A virtual clipboard, as said in the title

daboy
„Virtual Clipboard“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit daboy die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
50K
Gesichert
2
Aktionen
40
Kategorie
Productivity
Version
1.0
Sprache
EN

Vorschau

A virtual clipboard, as said in the title. You can save text or your clipboard to this shortcut and it will save, almost like you have two clipboards! More in the tutorial. This is a BETA version, it will be updated. Currently v1.1. Read my comment below if you don’t understand.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 14. Jun 2021

First release

Was er macht

40 Aktionen
  1. Number
  2. Get File
  3. Count
  4. If
  5. Show Alert
  6. Text
  7. Save File
  8. If
  9. Text
  10. Set Variable
    VirCli
  11. Choose from Menu
    Do you want to save your clipboard, save custom text or not save at all?
  12. Choose from Menu
    Save clipboard
  13. Save File
  14. Choose from Menu
    Save custom text
  15. Ask for Input
    What do you want to save?
  16. Save File
  17. Choose from Menu
    Don’t save
  18. Nothing
  19. Count
  20. If
  21. Choose from Menu
    The text saved earlier is too long to be displayed here. You can view it in a .txt file, copy it, or just exit the shortcut.
  22. Choose from Menu
    Copy
  23. Copy to Clipboard
  24. Choose from Menu
    View
  25. Quick Look
  26. Show Alert
  27. Copy to Clipboard
  28. Choose from Menu
    Exit
  29. Stop This Shortcut
  30. If
  31. Choose from Menu
    The text you saved earlier is "…". You can copy this text, view it in a .txt file, or exit the shortcut.
  32. Choose from Menu
    Copy
  33. Copy to Clipboard
  34. Quick Look
  35. Choose from Menu
    View
  36. Show Alert
  37. Copy to Clipboard
  38. Choose from Menu
    Exit
  39. Stop This Shortcut
  40. Stop This Shortcut

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/sharing'
#include 'actions/documents'
#define color purple
#define glyph walletPass

const MaximumCharacters = 30
const File = getFileFromFolder(, "VirtualClipboard.txt", false)
const Count = count(File)

if Count == 0 {
	alert("Hi, I see you're new to this shortcut (or deleted the data.) It simply gets your clipboard, and then it saves that text so that you can almost have two clipboards! \nThis is BETA, it will be updated. Currently v1.1. 📋", "")
	const Text = "Text"
	saveFile("VirtualClipboard.txt", Text, true)
} else {
	@VirCli = "{File}"
	menu "Do you want to save your clipboard, save custom text or not save at all? " {
	item "Save clipboard":
		saveFile("VirtualClipboard.txt", true)
	item "Save custom text":
		const ProvidedInput = prompt("What do you want to save?")
		saveFile("VirtualClipboard.txt", ProvidedInput, true)
	item "Don’t save":
	}
	const Count1 = count(@VirCli, "Characters")
	if Count1 >= MaximumCharacters {
		menu "The text saved earlier is too long to be displayed here. You can view it in a .txt file, copy it, or just exit the shortcut." {
		item "Copy":
			setClipboard(@VirCli)
		item "View":
			quicklook(@VirCli)
			confirm("Copy?")
			setClipboard(@VirCli)
		item "Exit":
			stop()
		}
	} else {
		menu "The text you saved earlier is \"{@VirCli}\". You can copy this text, view it in a .txt file, or exit the shortcut." {
		item "Copy":
			setClipboard(@VirCli)
			quicklook(@VirCli)
		item "View":
			confirm("Copy?")
			setClipboard(@VirCli)
		item "Exit":
			stop()
		}
	}
}
stop()
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von daboy

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung