diff --git a/how-to-use-multiple-compartmentalized-firefox-instances-simultaneously-using-profiles/README.md b/how-to-use-multiple-compartmentalized-firefox-instances-simultaneously-using-profiles/README.md index a3a8af9..78f51a6 100644 --- a/how-to-use-multiple-compartmentalized-firefox-instances-simultaneously-using-profiles/README.md +++ b/how-to-use-multiple-compartmentalized-firefox-instances-simultaneously-using-profiles/README.md @@ -20,12 +20,36 @@ Listed: true /Applications/Firefox.app/Contents/MacOS/firefox-bin -p ``` -### Step 2: open Firefox profile +### Step 2: open “Script Editor” and paste following snippet -> Heads-up: in the following command, make sure you replace `work` by the name of your profile. If the name includes spaces, please use quotes (example: `-p "Work Profile"`). +> Heads-up: replace `work` with profile name from [step 1](#step-1-create-firefox-profile). + +``` +do shell script "nohup /Applications/Firefox.app/Contents/MacOS/firefox-bin -p \"work\" --no-remote > /dev/null 2>&1 &" +``` + +![script-editor-step-1](./script-editor-step-1.png?shadow=1) + +### Step 3: export script as application + +Click “File”, then “Export…”, set “Export As” filename to “Firefox work” (or any other filename), select “Applications” folder (in “Favorites”), select “Application” file format and click “Save”. + +![script-editor-step-2](./script-editor-step-2.png?shadow=1) + +### Step 4: configure app as agent app + +> Heads-up: replace `Firefox work` with filename from [step 3](#step-3-export-script-as-application). ```shell -nohup /Applications/Firefox.app/Contents/MacOS/firefox-bin -p work --no-remote > /dev/null 2>&1 & +defaults write "/Applications/Firefox work.app/Contents/Info.plist" LSUIElement -bool yes +``` + +### Step 5 (optional): replace default icon with Firefox icon + +> Heads-up: replace `Firefox work` with filename from [step 3](#step-3-export-script-as-application). + +```shell +cp "/Applications/Firefox.app/Contents/Resources/firefox.icns" "/Applications/Firefox work.app/Contents/Resources/applet.icns" ``` 👍 diff --git a/how-to-use-multiple-compartmentalized-firefox-instances-simultaneously-using-profiles/script-editor-step-1.png b/how-to-use-multiple-compartmentalized-firefox-instances-simultaneously-using-profiles/script-editor-step-1.png new file mode 100644 index 0000000..1ed3dbb Binary files /dev/null and b/how-to-use-multiple-compartmentalized-firefox-instances-simultaneously-using-profiles/script-editor-step-1.png differ diff --git a/how-to-use-multiple-compartmentalized-firefox-instances-simultaneously-using-profiles/script-editor-step-2.png b/how-to-use-multiple-compartmentalized-firefox-instances-simultaneously-using-profiles/script-editor-step-2.png new file mode 100644 index 0000000..f3ca6f7 Binary files /dev/null and b/how-to-use-multiple-compartmentalized-firefox-instances-simultaneously-using-profiles/script-editor-step-2.png differ