Get battery level

Shows the current Battery Level on wireless devices, as well as the connected or charging status when plugged in. For always-on devices, shows a simple prompt.

Actions Used

shortcuts-action-icon-if.webp
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
shortcuts-action-icon-get-device-details.webp
Get Device Details
Gets information about the current device.
shortcuts-action-icon-get-battery-level.webp
Get Battery Level
Outputs the percentage of battery remaining as a number from 0 to 100.
shortcuts-action-icon-show-result.webp
Show Result
Shows the specified text in Siri or in an alert.
shortcuts-action-icon-stop-and-output.webp
Stop and Output
Stops execution of the current shortcut, and outputs content. This action is useful when: • Running a shortcut from another shortcut (using the Run Shortcut action). The output will be used as the output of the Run Shortcut action. • Running a shortcut from Quick Actions in Finder on macOS. The output will be saved as a file alongside the files selected in Finder. • Running a shortcut from Services on macOS. The output will replace the selected content, if applicable. • Or, when running a shortcut from another location that supports output, like the command-line or the Shortcuts URL scheme. No more actions will be run after this action.

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Get%20battery%20level
Open Shortcut deep link
shortcuts://open-shortcut?name=Get%20battery%20level
AppleScript code
tell application “Shortcuts Events” run shortcut “Get battery level” end tell

More From This Folder

More From The Library

Screen saver

Starts the screen saver on your Mac. Choose from the Landscape, Cityscape, Underwater, Earth, or other options in System Settings and trigger it using this.

Get Shortcut »


Get way deeper into Shortcuts – become a member.