Scan with your iPhone to install
Preview
• Use action button for ease of use. • Uses local storage no iCloud. • Simple so no instructions needed.
What's New
Version 1.0
First release
What it does
23 actions-
Get File
-
Set VariableFile
-
If
-
Append to Text File
-
Choose from Menu
-
Choose from MenuCopy
-
Get Clipboard
-
Split Text
-
Combine Text
-
Append to Text File
-
Choose from MenuClipboard
-
Split Text
-
Choose from List
-
Replace Text
-
Copy to Clipboard
-
Choose from MenuDelete
-
Split Text
-
Choose from List
-
Replace Text
-
Replace Text
-
Save File
-
Choose from MenuExit
-
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/text'
#include 'actions/sharing'
#include 'actions/documents'
#define glyph clipboard
getFileFromFolder(, "clipboard.txt", false)
@File
if !@File {
appendToFile("clipboard.txt", "Ari")
}
menu nil {
item "Copy":
const Clipboard = getClipboard()
const SplitText = splitText(Clipboard)
joinText(SplitText, " / ")
appendToFile("clipboard.txt")
item "Clipboard":
const SplitText1 = splitText(@File, "
")
chooseFromList(SplitText1)
const UpdatedText = replaceText(" / ", "\n", false, true)
setClipboard(UpdatedText)
item "Delete":
const SplitText2 = splitText(@File)
chooseFromList(SplitText2)
replaceText(, "", @File, true, false)
const UpdatedText1 = replaceText("(?m)^\s*[\r\n]+", "", true)
saveFile("clipboard.txt", UpdatedText1, true)
item "Exit":
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 arirafiq
You Might Also Like
Advertisement