So does this let me actually use the "multiple profiles" Firefox feature? I was always so confused by Firefox having "profiles" but apparently no interface for using or switching among them.
I just go to about:profiles, and click on Launch profile in new browser.
I can use incognito mode, but this way I don't have to login, and keeps browsing history.
https://gist.github.com/ilikepi/9d2e17e0d3b3efd6fc0584f46f09...
Note that, when run for the first time, it will request permission to talk to a couple system services. You can remove that stuff pretty easily though. You can also launch a shell script from Automator, which would have been easier but then I would not have had a chance to play with Applescript...