ShareShortcuts

Crash Reporter

Report the crashes

turtle
Fork “Crash Reporter”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so turtle gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
53K
Saved
1
Actions
21
Category
Reference
Version
1.0
Language
EN

Report the crashes

What's New

Version 1.0

First release

Version History
1.0 Jan 11, 2021

First release

What it does

21 actions
  1. Comment
    Make the input 3rr0rc0d3:Error Reason:Shortcut Name and then a exit shortcut under
  2. Text
  3. If
  4. Get File
  5. If
  6. Text
  7. Stop This Shortcut
  8. If
  9. Text
  10. Stop This Shortcut
  11. Split Text
  12. Set Variable
    Index
  13. Get Item from List
  14. Get Item from List
  15. Text
  16. Choose from Menu
    …
  17. Choose from Menu
    Run the shortcut again
  18. Get Item from List
  19. Run Shortcut
  20. Choose from Menu
    Exit
  21. Stop This Shortcut

View as code
Beta

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

See All

You Might Also Like

See All
Advertisement