ShareShortcuts

Virtual Clipboard

A virtual clipboard, as said in the title

daboy
Fork “Virtual Clipboard”

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å daboy 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
50K
Gemt
2
Handlinger
40
Kategori
Produktivitet
Version
1.0
Sprog
EN

Forhåndsvisning

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.

Nyheder

Version 1.0

First release

Versionshistorik
1.0 14. jun. 2021

First release

Hvad den gør

40 handlinger
  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

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/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()
Å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 daboy

Se alle

Du vil måske også kunne lide

Se alle
Annonce