ShareShortcuts

App curfew

Adds a time window when apps can’t be used

celebrity
Dupliquer « App curfew »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que celebrity soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
5K
Enregistré
0
Actions
14
Catégorie
API
Version
1.0
Langue
EN

Adds a time window when apps can’t be used. 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 and then add an action called “Run shortcut” and select “App curfew”.

Nouveautés

Version 1.0

First release

Historique des versions
1.0 22 mai 2026

First release

Ce qu’il fait

14 actions
  1. Comment
    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 and then add an action called “Run shortcut”…
  2. Text
  3. Parameterized Run Script
    dk.simonbs.Scriptable
  4. Split Text
  5. Set Variable
    TimeParts
  6. Get Item from List
  7. Set Variable
    Hour
  8. Get Item from List
  9. Set Variable
    Minute
  10. Calculate
  11. If
  12. Go to Home Screen
  13. If
  14. Nothing

Afficher en tant que code
Bêta

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 and then add an action called “Run shortcut” and select “App curfew”.

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

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité