You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[11:46:00.825] Logging Started...
[11:46:03.675] Low Power Mode[Script Filter] Queuing argument '(null)'
[11:46:03.727] Low Power Mode[Script Filter] Script with argv '(null)' finished
[11:46:03.731] Low Power Mode[Script Filter] {"items":[{"title":"Battery’s Low Power Mode is Off","subtitle":"Action to turn it off","arg":2,"icon":{"path":"images/icon_battery_off.png"}},{"title":"AC’s Low Power Mode is Off","subtitle":"Action to turn it off","arg":3,"icon":{"path":"images/icon_adapter_off.png"}}]}
[11:46:05.357] Low Power Mode[Script Filter] Processing complete
[11:46:05.359] Low Power Mode[Script Filter] Passing output '2' to Run Script
[11:46:12.307] Logging Stopped.
More details
The script does what is expected, as far as I can tell. However, at least on my system, I am asked to authenticate via password or TouchID before the changes are made, and the script closes the settings app before I can authenticate.
The text was updated successfully, but these errors were encountered:
Are you saying that even if you manually open the System Settings app, navigate to the Battery section, then change the dropdown, you get an authentication dialog?
First case I’ve seen of that and I’m not finding any information on it, including how to turn that off. What’s the model of your Mac?
Unfortunately, I doubt there’s anything which can be done because the authentication prompt is being caused by a GUI interaction, meaning it doesn’t know the authentication was triggered or when it was resolved.
There are two options:
Find out how to turn off the authentication prompt.
Edit the Run Script object and go near the bottom. Either delete the if (!settingsRunning) systemSettings.quit() line so System Settings isn’t auto-closed or change the delay(0.5) to a higher number (e.g. delay(3)) so it takes longer before closing (thus giving you the extra time to authenticate).
Workflow version
2023.1
Alfred version
5.0.6
macOS version
13.1
Debugger output
More details
The script does what is expected, as far as I can tell. However, at least on my system, I am asked to authenticate via password or TouchID before the changes are made, and the script closes the settings app before I can authenticate.
The text was updated successfully, but these errors were encountered: