Timeline for Lock Screen Command One-Liner
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 5, 2019 at 10:58 | history | edited | markhunte | CC BY-SA 4.0 |
added 458 characters in body
|
Apr 13, 2017 at 12:45 | history | edited | CommunityBot |
replaced http://apple.stackexchange.com/ with https://apple.stackexchange.com/
|
|
S May 18, 2016 at 22:06 | history | suggested | Demetrios Christopher | CC BY-SA 3.0 |
Updated AppleScript (with bibliography), confirmed working in El Capitan
|
May 18, 2016 at 16:35 | review | Suggested edits | |||
S May 18, 2016 at 22:06 | |||||
Oct 2, 2015 at 10:58 | comment | added | markhunte |
Still looking at this. But it looks like the menu does not report back on itself for the next item to be clicked. Running these two lines works but is slow. tell application "System Events" to tell process "SystemUIServer" to click (first menu bar item of menu bar 1 whose description is "Keychain menu extra") tell application "System Events" to click (menu item "Lock Screen" of menu 1 of menu bar item 1 of menu bar 1 of application process "SystemUIServer")
|
|
Oct 2, 2015 at 6:55 | comment | added | Marcin Bobowski | I used this solution for a long time, but since osX El Captain it doesn't work anymore :(. | |
Feb 26, 2015 at 23:56 | comment | added | Sorin Buturugeanu | you can also run a terminal command from automator, so I used that. it seamed more "elegant" :). very nice solution though! | |
Sep 24, 2014 at 3:12 | comment | added | nictrix | This worked great for what I needed it for, thank you! | |
Jun 14, 2013 at 19:28 | history | answered | markhunte | CC BY-SA 3.0 |