Scan with your iPhone to install
Preview
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.
What's New
Version 1.0
First release
What it does
40 actions-
Number
-
Get File
-
Count
-
If
-
Show Alert
-
Text
-
Save File
-
If
-
Text
-
Set VariableVirCli
-
Choose from MenuDo you want to save your clipboard, save custom text or not save at all?
-
Choose from MenuSave clipboard
-
Save File
-
Choose from MenuSave custom text
-
Ask for InputWhat do you want to save?
-
Save File
-
Choose from MenuDon’t save
-
Nothing
-
Count
-
If
-
Choose from MenuThe 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.
-
Choose from MenuCopy
-
Copy to Clipboard
-
Choose from MenuView
-
Quick Look
-
Show Alert
-
Copy to Clipboard
-
Choose from MenuExit
-
Stop This Shortcut
-
If
-
Choose from MenuThe text you saved earlier is "…". You can copy this text, view it in a .txt file, or exit the shortcut.
-
Choose from MenuCopy
-
Copy to Clipboard
-
Quick Look
-
Choose from MenuView
-
Show Alert
-
Copy to Clipboard
-
Choose from MenuExit
-
Stop This Shortcut
-
Stop This Shortcut
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#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()
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by daboy
You Might Also Like
Advertisement