ShareShortcuts

1% Battery Remaining Alert

coltensus
Fork “1% Battery Remaining Alert”

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
9K
Saved
0
Actions
21
Category
Utilities
Version
1.0
Language
EN

Requires Scriptable My Scriptable File: https://drive.google.com/file/d/1ziv970vtNsvPluD8zguX1IY-3-V_WqgF/view?usp=drivesdk

What's New

Version 1.0

First release

Version History
1.0 Dec 31, 2025

First release

What it does

21 actions
  1. Get Battery Level
  2. If
  3. Show Alert
    Error
  4. Stop This Shortcut
  5. If
  6. Getcurrentapp
  7. Text
  8. Text
  9. If
  10. Set Low Power Mode
  11. File
  12. Get Text from Input
  13. Open App
  14. If
  15. If
  16. File
  17. Get Text from Input
  18. Open App
  19. If
  20. Save File
  21. Parameterized Run Script
    dk.simonbs.Scriptable

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
#include 'actions/device'
#define color red

const BatteryState = getBatteryLevel()

if BatteryState != 1 {
	alert("Device is not at 1%", "Error")
	stop()
} else {
}
rawAction("is.workflow.actions.getcurrentapp", {
	"WFVisibleAppScope": "Current"
})
const Text3 = "{}"
const Text = "{ShortcutInput}"

if Text == "1" {
	setLowPowerMode(false)
	const File = file()
	const Text1 = getText(File)
	openApp()
} else {
	if Text == "2" {
		const File1 = file()
		const Text2 = getText(File1)
		openApp()
	} else {
		saveFile("/1% Battery Remaining Alert/Current App Data.txt", Text3, true)
		rawAction("dk.simonbs.Scriptable.ParameterizedRunScriptIntent", {
			"ShowWhenRun": false,
			"fileName": "1% Battery Remaining Alert",
			"parameter": [],
			"runInApp": true,
			"texts": []
		})
	}
}
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