![]() ![]() Let me start by saying while both of the other answers prior to this one do work, nonetheless I wouldn't use either one of them for the following reasons. ![]() Group windows by application do shell script "defaults write 'expose-group-apps' -bool true killall Dock" When switching to an application, switch to a Space with open windows for the application do shell script "defaults write -g AppleSpacesSwitchOnActivate -bool true" Note: Tested with MacOS High Sierra, but should work (I believe) in OS X Mavericks and later. "defaults write 'mru-spaces' -bool " & ¬ ![]() To toggle the setting, this short script will achieve that: set currentSetting to ¬ untick the checkbox, change true to false in the line of code above. so the checkbox is ticked): do shell script "defaults write 'mru-spaces' -bool true killall Dock" To set Automatically rearrange Spaces based on most recent use to true (i.e. If you do happen to have it open in order to monitor whether the script below works, bear in mind that the GUI (what you see) is not updated until you close System Preferences, and open it up again. This is an alternative method using a shell command via AppleScript, which has the benefit of not requiring System Preferences to be open/running/visible. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |