Scan with your iPhone to install
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”.
What's New
Version 1.0
First release
What it does
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 and then add an action called “Run shortcut”…
-
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
View as code
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 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 {
}
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
You Might Also Like
Advertisement