C++ made in shortcuts
What's New
Version 1.0
First release
What it does
18 actions-
Text
-
Text
-
Show Result
-
Choose from Menu
-
Choose from MenuSave to Notes📝
-
Copy to Clipboard
-
Create Note
-
Choose from MenuSave to clipboard📋
-
Copy to Clipboard
-
Choose from MenuSave as PDF file
-
Copy to Clipboard
-
Make PDF
-
Save File
-
Show Notification…
-
Choose from MenuSave as txt file
-
Copy to Clipboard
-
Save File
-
Show Notification…
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'
#define color darkorange
#define glyph documentOutline
const Text = "Added autosave to clipboard when pressing on a \\"save as\\" button to recover your work if you pressed the wrong button.\nNew design.etc...\nHope you enjoy it.😊"
show(Text)
menu nil {
item "Save to Notes📝":
setClipboard(Text)
rawAction("com.apple.mobilenotes.SharingExtension", {
"WFCreateNoteInput": "{Text}"
})
item "Save to clipboard📋":
setClipboard(Text)
item "Save as PDF file":
setClipboard(Text)
const PDF = makePDF(Text, true)
saveFilePrompt(PDF)
showNotification(, PDF)
item "Save as txt file":
setClipboard(Text)
saveFilePrompt(Text)
showNotification(, @cpp)
}
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 outlander2007
You Might Also Like
Advertisement