Reboots Macintosh. It might be a MacBook, or an iMac. I chose MacBook, because I have it.
What's New
Version 1.0
First release
What it does
4 actions-
Ask for InputAre you sure you want to reboot this MacBook?
-
If
-
Run Shell Script
-
If
View as code
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 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 {
}
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 demoloop
You Might Also Like
Advertisement