Warning message creator
This is a simple shortcut that I made to make custom error messages
0112pjhallMit dem iPhone scannen, um zu installieren
Vorschau
This is a simple shortcut that I made to make custom error messages. (Most features only work on Mac OS Monterey.)
Neue Funktionen
Version 1.1
Added the ability to force a kernel panic for Mac users only.
Was er macht
10 Aktionen-
Choose from MenuWhat would you like create
-
Choose from MenuCreate Message
-
Ask for InputWhat would you like your message to say
-
Show AlertWarning!
-
Choose from MenuCreate Notification
-
Ask for InputWhat would you like your notification to say
-
Show Notification…
-
Choose from MenuForce Crash (Mac OS Only)
-
Show AlertReminder
-
Run Shell Script
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#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();}\"")
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von 0112pjhall
Das gefällt dir vielleicht auch
Werbung