With this shortcut it is possible to put the Apple TV into sleep mode with an assigned time in minutes.
Nouveautés
Version 1.1
Update Link
Ce qu’il fait
11 actions-
Ask for InputOk, wie lange soll der Timer laufen?
-
Set VariableSleepTimer
-
Date
-
Adjust Date
-
Set Focus
-
Text
-
Copy to Clipboard
-
Get Clipboard
-
If
-
Sleep Apple T Vcom.apple.TVRemoteUIService
-
CommentVersion 1.1 alxblog.de @alxblog
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.
#include 'actions/sharing'
#include 'actions/calendar'
#define color darkgray
#define glyph circledPower
prompt("Ok, wie lange soll der Timer laufen?", "Number")
@SleepTimer
currentDate()
const Sleeptimer = adjustDate(, "")
setFocusMode(, "Time", Sleeptimer)
const Text = "+ Sleeptimer Aktiv"
setClipboard(Text)
const Zwischenablage = getClipboard()
if Zwischenablage == "Sleeptimer Aktiv" {
rawAction("com.apple.TVRemoteUIService.SleepAppleTVIntent", {})
}
/*
Version 1.1
alxblog.de
@alxblog
*/
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é
Ça pourrait aussi te plaire
Publicité