Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jasnw

macrumors 65816
Original poster
Nov 15, 2013
1,076
1,140
Seattle Area (NOT! Microsoft)
I want to be able to open an image on a specific virtual desktop (Space) from a CLI script. As a simple example, using the "open" command to have Preview display an image on Desktop 2. A kludge would be to tie Preview to one specific Desktop via the GUI, but then anything I did with Preview would move to that Desktop. I'm not limiting this to using open, if this requires Applescript that's OK also. Just need something I can run in a shell script.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.