ShareShortcuts

App curfew

Adds a time window when apps can’t be opened

celebrity
Fork “App curfew”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so celebrity gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
5K
Saved
0
Actions
14
Category
API
Version
1.0
Language
EN

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.

What's New

Version 1.0

First release

Version History
1.0 May 22, 2026

First release

What it does

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.
  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

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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 {
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by celebrity

See All

You Might Also Like

See All
Advertisement