LockDown Posted 6 hours ago Share Posted 6 hours ago (edited) How to tell osascript in one liner to show this prompt... @chris1111? Edited 6 hours ago by LockDown Link to comment Share on other sites More sharing options...
Anto65 Posted 5 hours ago Share Posted 5 hours ago " defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no " 1 Link to comment Share on other sites More sharing options...
LockDown Posted 5 hours ago Author Share Posted 5 hours ago (edited) That command will disable it. Im asking for command in terminal to display that dialogue Edited 5 hours ago by LockDown Link to comment Share on other sites More sharing options...
Anto65 Posted 4 hours ago Share Posted 4 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 4 hours ago by Anto65 2 Link to comment Share on other sites More sharing options...
LockDown Posted 3 hours ago Author Share Posted 3 hours 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...
LockDown Posted 1 hour ago Author Share Posted 1 hour ago (edited) @Anto65 what im trying to do is similar to this: osascript -e 'tell app "loginwindow" to «event aevtrrst»' Edited 1 hour ago by LockDown Link to comment Share on other sites More sharing options...
Recommended Posts