ShareShortcuts

Warning message creator

This is a simple shortcut that I made to make custom error messages

0112pjhall
Fork “Warning message creator”

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 0112pjhall 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
40K
Saved
1
Actions
10
Category
Fun
Version
1.1
Language
EN

Preview

This is a simple shortcut that I made to make custom error messages. (Most features only work on Mac OS Monterey.)

What's New

Version 1.1

Added the ability to force a kernel panic for Mac users only.

Version History
1.1 Jul 11, 2022

Added the ability to force a kernel panic for Mac users only.

1.0 Jul 11, 2022

First release

What it does

10 actions
  1. Choose from Menu
    What would you like create
  2. Choose from Menu
    Create Message
  3. Ask for Input
    What would you like your message to say
  4. Show Alert
    Warning!
  5. Choose from Menu
    Create Notification
  6. Ask for Input
    What would you like your notification to say
  7. Show Notification
    …
  8. Choose from Menu
    Force Crash (Mac OS Only)
  9. Show Alert
    Reminder
  10. Run Shell Script

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 mac true
#include 'actions/mac'
#define color orange
#define glyph alertTriangle


menu "What would you like create" {
item "Create Message":
	prompt("What would you like your message to say", "Text")
	alert(, "Warning!")
item "Create Notification":
	prompt("What would you like your notification to say", "Text")
	showNotification(, "Notification", true)
item "Force Crash (Mac OS Only)":
	alert("You must disable the SIP (System Integrity Protection) before you can do this", "Reminder")
	runShellScript("sudo dtrace -w -n \"BEGIN{ panic();}\"")
}
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 0112pjhall

See All

You Might Also Like

See All
Advertisement