Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

atihg566

macrumors newbie
Original poster
Aug 31, 2016
14
0
usa
hi,
i have Sonoma 14.1 macos
I have tried using the following command to open Firefox in the current space/desktop, but it does not work well:
I have tried on the terminal
and I have tried also using "Execute Shell Script" in keyboard maestro

When I run those command, it open new Firefox window in a new space,
not in the current space am in
please I want that Firefox will always open new window in the current space i am in .

those all the commends i try:

```
open -n -a Firefox
```

```
open -a Firefox -n -s
```

```
open -a Firefox -n && switchto -a Firefox
```

```
tell application "Firefox" to activate
```

```
tell application "System Events" to tell process "Finder" to activate
tell application "System Events" to tell process "Firefox" to activate
```




this command work grate just like 3 weeks ago
maybe when i update the macOS (i don't remember exactly)
and i don't have time machine:

```
open -n -a Firefox
```


Thank you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.