13
1
I want to have an application open a new window in the current space without switching to a space in which a window is already open, but I want to keep the
When switching to an application, switch to a space with open windows for the application
setting in System Preferences > Mission Control.
In other words, I want to tell an application to open a new window directly, without first telling it to activate
.
How can I do this with AppleScript (if possible)?
Awesome! I used the following example to open a new window of iA Writer (great text editor) using Alfred 3:
'-- Open new iA Text Window
tell application "iA Writer" make new document activate end tell' – ATSiem – 2018-09-06T15:20:00.087
awesome. it's cool man – ruucm Ji – 2020-01-22T03:45:02.430
1Awesome! Do you know of similar ones for Chrome and iTerm? – Will – 2013-02-13T06:14:09.027
1Great, thank you very much! Incidentally, how did you find those commands? Is there easily-accessible documentation? – Will – 2013-02-13T21:52:42.197
Thanks! Just a note for the quick copy/pasters (like myself): activate after making a new Chrome window to bring the new window (all windows actually) to the front. - All the other examples here include some form of activation. – Joel Mellon – 2013-09-27T21:23:48.220