ShareShortcuts

Virtual Clipboard

A virtual clipboard, as said in the title

daboy
Fazer fork de “Virtual Clipboard”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que daboy receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
50K
Salvo
2
Ações
40
Categoria
Productivity
Versão
1.0
Idioma
EN

Pré-visualização

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.

Novidades

Versão 1.0

First release

Histórico de versões
1.0 14 de jun de 2021

First release

O que ele faz

40 ações
  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

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#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()
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de daboy

Ver tudo

Você também pode gostar

Ver tudo
Publicidade