I work with several desktops in version 10.14.4, my applications are assigned to each table, but after a reboot, a random desktop is loaded. How can I choose a desktop (for example, # 3) when restarting, or on / off?
1 answer
Such an approach is possible:
Create an Applescript script to go to a specific desktop (for example, here we consider Desktop 3):
do shell script "/Applications/Mission\\ Control.app/Contents/MacOS/Mission\\ Control" delay 0.5 try tell application "System Events" to click (first button whose value of attribute "AXDescription" is "exit to Desktop 3") of list 1 of group 1 of process "Dock" on error tell application "System Events" to click (first button whose value of attribute "AXDescription" is "exit to Desktop 3") of list 2 of group 1 of process "Dock" end try Now we force the script to run when logged in:
-> System Preferences-> Users & Groups -> [Login Items] -> select + and then the created script.
- Cool! I actually thought it was easier to do. - Alo Ruslan
|