keronconcept.blogg.se

How to open firefox profile manager
How to open firefox profile manager






You can also tell Firefox to load a specific URL when it opens, by adding a space and then the website after the profile name.

how to open firefox profile manager

If not, then change those variables at the top of the script to match your setup. On run set ffPath to "/Applications/" set ffName to "Firefox" set ffProfile to "clean" set findFF to "ps -ef | grep firefox | grep -v grep | grep -v sh | awk ''" set pinfo to do shell script findFF set oldPnum to count words of pinfo if oldPnum is less than 2 then do shell script ffPath & ffName & ".app/Contents/MacOS/firefox -P " & ffProfile & " &> /dev/null &" end if set newPnum to oldPnum repeat while newPnum = oldPnum delay 0.25 set pinfo to do shell script findFF set newPnum to count words of pinfo end repeat if newPnum is less than 2 then set ffPID to word 1 of pinfo as integer else set ffPID to word 2 of pinfo as integer end if tell application "System Events" to set frontmost of every process whose unix id is ffPID to trueend runThis script assumes that Firefox is in the Applications folder, that it's named "Firefox", and that the profile is named "clean". Once you're done, click Exit.Now for the script. If your profile name is longer than one word, make sure you use underscores or dashes instead of spaces. When the Profile Manager opens, click Create Profile, and name it whatever you want (I used "Clean"). This assumes that Firefox is in the Applications folder if you have it somewhere else, change the path to wherever you put it. Open a new Terminal window and type this: /Applications/Firefox.app/Contents/MacOS/firefox -profilemanager.then hit Return. If you already have both your default profile and the clean profile open, it'll just bring the clean one into focus.īefore we get to the actual script, you'll need to open Firefox's profile manager and create a new profile.

how to open firefox profile manager

If Firefox is running, the script will open a new instance of Firefox alongside the current one and load the clean profile in that. If Firefox isn't already running when you run this script, it'll open Firefox normally, but load a clean profile instead of the default one. I just finished writing an AppleScript that will let you run Firefox with a clean profile.








How to open firefox profile manager