ShareShortcuts

App curfew

Adds a time window when apps can’t be used

celebrity
Fork “App curfew”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så celebrity får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
5K
Gemt
0
Handlinger
14
Kategori
API
Version
1.0
Sprog
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”.

Nyheder

Version 1.0

First release

Versionshistorik
1.0 22. maj 2026

First release

Hvad den gør

14 handlinger
  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

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#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 {
}
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra celebrity

Se alle

Du vil måske også kunne lide

Se alle
Annonce