Open application in current desktop?

If I have an "activate application" action, is there a way to prevent the application from being activated in a separate desktop?

For example, if I have a chrome window open in Desktop 1, and my screen is currently on Desktop 2, can I have the "activate chrome" action open a new chrome window in desktop 2 and not switch to the open chrome window in Desktop 1?

Apple provide no public API for Spaces, so Keyboard Maestro cannot help you with this.

There may be ways to hack it by controlling the UI, or by some other mechanism, or by using an application that uses non-public APIs.

1 Like