Scan with your iPhone to install
calculates total hours
What's New
Version 1.0
First release
What it does
16 actions-
Get Valuedk.simonbs.DataJar
-
Set VariableMon
-
Get Valuedk.simonbs.DataJar
-
Set VariableTue
-
Get Valuedk.simonbs.DataJar
-
Set VariableWed
-
Get Valuedk.simonbs.DataJar
-
Set VariableThu
-
Get Valuedk.simonbs.DataJar
-
Set VariableFri
-
Get Valuedk.simonbs.DataJar
-
Set VariableSat
-
Get Valuedk.simonbs.DataJar
-
Set VariableSun
-
Calculate Expression
-
Set Valuedk.simonbs.DataJar
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define color darkblue
#define glyph speedometer
rawAction("dk.simonbs.DataJar.GetValueIntent", {
"keyPath": "HP-Timesheet.Mon.time"
})
@Mon
rawAction("dk.simonbs.DataJar.GetValueIntent", {
"keyPath": "HP-Timesheet.Tue.time"
})
@Tue
rawAction("dk.simonbs.DataJar.GetValueIntent", {
"keyPath": "HP-Timesheet.Wed.time"
})
@Wed
rawAction("dk.simonbs.DataJar.GetValueIntent", {
"keyPath": "HP-Timesheet.Thu.time"
})
@Thu
rawAction("dk.simonbs.DataJar.GetValueIntent", {
"keyPath": "HP-Timesheet.Fri.time"
})
@Fri
rawAction("dk.simonbs.DataJar.GetValueIntent", {
"keyPath": "HP-Timesheet.Sat.time"
})
@Sat
rawAction("dk.simonbs.DataJar.GetValueIntent", {
"keyPath": "HP-Timesheet.Sun.time"
})
@Sun
const CalculationResult = (@Mon+@Tue+@Wed+@Thu+@Fri+@Sat+@Sun)/60
rawAction("dk.simonbs.DataJar.SetValueIntent", {
"keyPath": "HP-Timesheet.Total Time",
"values": "CalculationResult"
})
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
You Might Also Like
Advertisement