ShareShortcuts

1% Battery Remaining Alert

coltensus
Bifurcar “1% Battery Remaining Alert”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que coltensus reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
9K
Guardado
0
Acciones
21
Categoría
Utilities
Versión
1.0
Idioma
EN

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

Novedades

Versión 1.0

First release

Historial de versiones
1.0 31 de dic. de 2025

First release

Qué hace

21 acciones
  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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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": []
		})
	}
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de coltensus

Ver todo

También te puede gustar

Ver todo
Publicidad