
我将某些应用程序设置为在特定空间中打开,但希望它们在后台打开而不是切换空间,这样我就可以看到它们打开。
答案1
这将阻止任何空间的自动切换,这符合您的标准,但也会做其他您可能不想要的事情:
defaults write com.apple.dock workspaces-auto-swoosh -bool false
osascript -e 'tell application "Dock" to quit'
答案2
答案3
(上述用户拒绝让我在编辑他的答案时引用官方文档,因此我将其添加以便让想要获得权威事实来源的实际用户受益)
从man open
-g Do not bring the application to the foreground.
例子:
open -g -a /Applications/TextWrangler.app /path/to/myFile.txt