LockDown Posted 4 hours ago Share Posted 4 hours ago (edited) How to tell osascript in one liner to show this prompt... @chris1111? Edited 3 hours ago by LockDown Link to comment Share on other sites More sharing options...
Anto65 Posted 2 hours ago Share Posted 2 hours ago " defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no " 1 Link to comment Share on other sites More sharing options...
LockDown Posted 2 hours ago Author Share Posted 2 hours ago (edited) That command will disable it. Im asking for command in terminal to display that dialogue Edited 2 hours ago by LockDown Link to comment Share on other sites More sharing options...
Anto65 Posted 2 hours ago Share Posted 2 hours ago (edited) Have you tried? I just gave the command this is the result You can also use defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool yes in both cases the dialog box is shown (at least in my case) Edited 2 hours ago by Anto65 2 Link to comment Share on other sites More sharing options...
LockDown Posted 29 minutes ago Author Share Posted 29 minutes ago 1 hour ago, Anto65 said: Have you tried? I just gave the command this is the result Hi @Anto65 yes i tried, and it only enable/disable the prompt when i press the power button. What im trying to do is to write a command in a script to popup that dialogue prompt Link to comment Share on other sites More sharing options...
Recommended Posts