Mit dem iPhone scannen, um zu installieren
Reboots Macintosh. It might be a MacBook, or an iMac. I chose MacBook, because I have it.
Neue Funktionen
Version 1.0
First release
Was er macht
4 Aktionen-
Ask for InputAre you sure you want to reboot this MacBook?
-
If
-
Run Shell Script
-
If
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 green
#define glyph syncArrows
const AskForInput = prompt("Are you sure you want to reboot this MacBook?")
if AskForInput == "yes" {
runShellScript("osascript -e 'tell application \"System Events\" to restart'", AskForInput, "/bin/zsh")
} else {
}
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 demoloop
Das gefällt dir vielleicht auch
Werbung