Report the crashes
What's New
Version 1.0
First release
What it does
21 actions-
CommentMake the input 3rr0rc0d3:Error Reason:Shortcut Name and then a exit shortcut under
-
Text
-
If
-
Get File
-
If
-
Text
-
Stop This Shortcut
-
If
-
Text
-
Stop This Shortcut
-
Split Text
-
Set VariableIndex
-
Get Item from List
-
Get Item from List
-
Text
-
Choose from Menu…
-
Choose from MenuRun the shortcut again
-
Get Item from List
-
Run Shortcut
-
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.
#define color yellow
#define glyph alertTriangle
/*
Make the input
3rr0rc0d3:Error Reason:Shortcut Name
and then a exit shortcut under
*/
const Text = "{ShortcutInput}"
if Text contains "check" {
const File = getFileFromFolder(, "crashreporter.txt", false)
if !File {
const Text1 = "Successful"
stop()
} else {
const Text2 = "Unsuccessful, please delete crashreporter.txt"
stop()
}
}
splitText(ShortcutInput, ":")
@Index
const error = getListItem(@Index, 1)
const ErrorDescription = getListItem(@Index, 2)
const description = "Whoops, an error occurred.\nError code: {error}\nReason: {ErrorDescription}"
menu description {
item "Run the shortcut again":
const Shortcut = getListItem(ShortcutInput, 3)
runSelf()
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 turtle
You Might Also Like
Advertisement