Does anyone know how to open a new Firefox window from the command line while Firefox is already running? I can't find any solutions currently out there that work for me.
I've looked at the MDN web docs Command Line Options but everything I have tried there throws the "A copy of Firefox is already open. Only one copy of Firefox can be open at a time." error.
I use multiple Firefox Developer Edition windows across multiple spaces. I'd like to be able to swipe to a fresh space, type this command, and see a new window open in that space. A .bash_profile alias would be ideal.
Running macOS High Sierra 10.13.2 and Firefox Developer Edition 58.0b11 (64-bit).
osascript -e 'tell application "Firefox" to activate' -e 'tell application "System Events" to keystroke "n" using command down'