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