Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用JavaScript for Automation (JXA)在两个不同的屏幕/显示器上打开两个应用程序,这怎么可能?
我能够打开应用程序,但我找不到控制它应该在哪里打开的方法。
我使用键码方法来设置特定空间
se = Application('System Events'); function setSpace() { se.keyCode(18 ,{using : 'control down' }); }
这将集中在第一个空间