2

For example when I run open -a Kodi I'd like to be able to specify which Desktop I'd want the application to launch in.

Trying to avoid dragging/dropping to the desired workspace.

2 Answers 2

3

You can permanently assign an app to a Space by right-clicking the app in the dock > Options > Assign to... This Desktop.

enter image description here

A faster way to move it to any given Space is to grab the window's title bar, then use your regular shortcut to switch to the desired Space. By default that would be Ctrl ⌃ [number]
See System Prefs > Keyboard > Shortcuts > Mission Control if you've never set that up. [Note that it differentiates between the numbers above qwerty & numbers on a 10-key pad & considers them different keys]

6
  • Options > Assign to... is no longer available.
    – jherran
    May 17, 2016 at 6:02
  • @jherran - Since when? It's still available as of 10.11.4 Picture added.
    – Tetsujin
    May 17, 2016 at 6:07
  • Never mind. Will be out in 10.11 betas and thought that will be out now. I was wrong. As you say is still there.
    – jherran
    May 17, 2016 at 6:29
  • I really hope they're not going to break Spaces any more than they already did when they added Mission Control :(
    – Tetsujin
    May 17, 2016 at 6:36
  • Hmmm... 10.11.5 has arrived in my updates... will report back... :/
    – Tetsujin
    May 17, 2016 at 7:05
0

Unfortunately, I believe there is no known way to launch an application in a specific dock space (Desktop) using command line.

1
  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Dec 14, 2022 at 14:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .