Timeline for AppleScript for locking the screen in Catalina
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 6, 2020 at 16:48 | comment | added | user3439894 |
@ankii, See my updated answer for using application process ... .
|
|
Feb 6, 2020 at 15:44 | vote | accept | floatingpurr | ||
Feb 7, 2020 at 9:16 | |||||
Feb 6, 2020 at 15:42 | answer | added | user3439894 | timeline score: 3 | |
Feb 6, 2020 at 15:39 | comment | added | floatingpurr |
just for context: tell application "System Events" to click menu item "Lock Screen" of menu 1 of menu bar item "Apple" of menu bar 1 of application process "Finder" does not work
|
|
Feb 6, 2020 at 15:24 | comment | added | anki | @user3439894: ""Apple" of menu bar 1 of application process "Finder"" than can be any process right? :) | |
Feb 6, 2020 at 15:06 | comment | added | floatingpurr |
tell application "System Events" to keystroke "q" using {control down, command down} worked like a charm. If you want to add an answer I'm going to accept it. Thanks!
|
|
Feb 6, 2020 at 11:05 | comment | added | floatingpurr | I've just tried but I'm not still there. Details in the updated question | |
Feb 6, 2020 at 11:04 | history | edited | floatingpurr | CC BY-SA 4.0 |
added 127 characters in body
|
Feb 6, 2020 at 10:48 | comment | added | Udhy | did you allow and see if you were able to avoid this error you have mentioned. | |
Feb 6, 2020 at 10:40 | comment | added | floatingpurr | Yes, I know there is a built-in button. However, I'd like to group all my custom buttons under the QuickAction button. | |
Feb 6, 2020 at 10:36 | comment | added | Udhy | Allow accessibility for Apple Script Editor from Security and privacy then you will get rid of your error. As mentioned in following solution, it is already natively in macOS. | |
Feb 6, 2020 at 10:31 | answer | added | Edd Growl | timeline score: 2 | |
Feb 6, 2020 at 10:21 | history | asked | floatingpurr | CC BY-SA 4.0 |