Check battery level

Gets the current battery state, checking for connection or charging status and showing the total battery level as a percentage.

Scripting Actions

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-set-variable.webp
Set Variable
Sets the value of the specified variable to the input of this action.
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-show-result.webp
Show Result
Shows the specified text in Siri or in an alert.

Extra Details

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

More From This Folder

Get network details

Gets the current Wi-Fi network details, including the current IP address, Network Name, BSSSID, Wi-Fi Standard, RX Rate, TX Rate, RSSI, Noise, Channel Number, and Hardware MAC Address.

Get Shortcut »

Open Play TV

Opens the app Play for YouTube on an Apple TV of your choice so you can select videos you’ve saved for later to open in the YouTube app.

Get Shortcut »

More From The Library

Open recent calls

Opens the deep link into the Recents section of the Phone app to see your incoming and outgoing calls, plus any missed calls (mobilephone-recents://).

Get Shortcut »

Open Club MacStories

Shows the main homepage for Club Macstories, the members-only portion of the MacStories website with weekly newsletters, community events, and private stories with more advanced techniques.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more