Scanne avec ton iPhone pour installer
Adds a time window when apps can’t be opened. Simply download this shortcut and scriptable app in the App Store and then head over to the automation section and then select when “App” is opened and then select the apps you want the curfew to apply to.
Nouveautés
Version 1.0
First release
Ce qu’il fait
14 actions-
CommentSimply download this shortcut and scriptable app in the App Store and then head over to the automation section and then select when “App” is opened and then select the apps you want the curfew to apply to.
-
Text
-
Parameterized Run Scriptdk.simonbs.Scriptable
-
Split Text
-
Set VariableTimeParts
-
Get Item from List
-
Set VariableHour
-
Get Item from List
-
Set VariableMinute
-
Calculate
-
If
-
Go to Home Screen
-
If
-
Nothing
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 false
#define color violet
#define glyph house
// Simply download this shortcut and scriptable app in the App Store and then head over to the automation section and then select when “App” is opened and then select the apps you want the curfew to apply to.
const Text = "nil"
rawAction("dk.simonbs.Scriptable.ParameterizedRunScriptIntent", {
"ShowWhenRun": false,
"fileName": "Current Time",
"parameter": "Text"
})
splitText(Output, "|")
@TimeParts
getListItem(@TimeParts, 1)
@Hour
getListItem(@TimeParts, 2)
@Minute
const CalculationResult = @Hour + 0
if CalculationResult < 8 {
returnToHomescreen()
} 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 celebrity
Ça pourrait aussi te plaire
Publicité