ShareShortcuts

Total Amount of Screen Time (PREVIEW)

coltensus
Fork “Total Amount of Screen Time (PREVIEW)”

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 coltensus 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
10K
Saved
0
Actions
29
Category
Utilities
Version
1.0
Language
EN

The official Apple Shortcut to view your total amount of screen time and make shortcuts with This one is just to preview it, so please use the DEV versions of this shortcut to make apple shortcuts with it

What's New

Version 1.0

First release

Version History
1.0 Nov 15, 2025

First release

What it does

29 actions
  1. Get Website & App Activity
    com.apple.intelligenceplatform.IntelligencePlatform.IntelligencePlatformDataActionsAppIntentsExtension
  2. Text
  3. Split Text
  4. Calculate Statistics
  5. Split Text
  6. Get Item from List
  7. Text
  8. Get Item from List
  9. Text
  10. Calculate
  11. Text
  12. Split Text
  13. Get Item from List
  14. Text
  15. Get Item from List
  16. Text
  17. Calculate
  18. Round Number
  19. Text
  20. Text
  21. Choose from Menu
    Preview Options (…)
  22. Choose from Menu
    Show Content (Small Popup)
  23. Show Result
  24. Choose from Menu
    Quick Look (Full Screen Popup)
  25. Quick Look
  26. Choose from Menu
    Rerun Shortcut
  27. Run Shortcut
    Run Script 4
  28. Choose from Menu
    Exit
  29. Stop This Shortcut

View as code
Beta

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

#include 'actions/math'
#include 'actions/device'
#define color lightblue
#define glyph hourglass

getDeviceUsage("all", "today")
const Text = "{['totalDuration']}"
const SplitText = splitText(Text, "
")
const Sum = statistic("Sum", nil)
const SplitText1 = splitText(Sum, ".")
getFirstItem(SplitText1)
getFirstItem(SplitText1)
const Text1 = "0.{}"
const Text2 = "{}"
const SplitText2 = splitText(Text2, ".")
getListItem(SplitText2, 0)
getLastItem(SplitText2)
const Text3 = "0.{}"
const CalculationResult = Text3 * 60
round(CalculationResult)
const Text4 = "{} {} {}"

menu "Preview Options ({Text4})" {
item "Show Content (Small Popup)":
	show(Text4)
item "Quick Look (Full Screen Popup)":
	quicklook(Text4)
item "Rerun Shortcut":
	runSelf()
item "Exit":
	stop()
}
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 coltensus

See All

You Might Also Like

See All
Advertisement