Scanne avec ton iPhone pour installer
Reboots Macintosh. It might be a MacBook, or an iMac. I chose MacBook, because I have it.
Nouveautés
Version 1.0
First release
Ce qu’il fait
4 actions-
Ask for InputAre you sure you want to reboot this MacBook?
-
If
-
Run Shell Script
-
If
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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 {
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de demoloop
Ça pourrait aussi te plaire
Publicité