0

I would like to open two applications on two different screens/displays using JavaScript for Automation (JXA), how is it possible?

I'm able to open the applications, but I can't find a way to control where it should open.

1 Answers1

-1

I use a key code methode for setting a particular space

se = Application('System Events');
function setSpace() {
    se.keyCode(18 ,{using : 'control down' });
}

this will focus on the first space