I'm considering writing a script that would open a bunch of apps. For example, it would open Slack on my secondary display, Chrome on a primary and Firefox on a third one. Right now, I can open a file from a terminal using open <appname> command but this does not provide an interface to choose the preferred display.
Is there a way to do that programmatically?
I was checking NSWorkspace but couldn't find the option to specify a display either.