The “instructions from Google” mentioned in the question no longer talk about how to create AppleScript, so I couldn’t get it working.
I also tried the script option from @Miguel and it partially worked (thanks!), But I ran into some difficulties. The main problem is that the wrapped copy of Chrome, although independent, has its own icon and works correctly on its own, cannot open URLs sent from other applications, so it does not work with Choosy.
Here is what worked for me to get a second Chrome that can open links through Choosy, for example:
- Copy
Library/Application Support/Google/Chrome to Library/Application Support/Google/ChromePersonal to your home directory. It's not obligatory; I wanted to transfer my Chrome user profiles to a new instance. But if you start from scratch, you can skip this. - Copy
Google Chrome.app to another location. I used /Applications/Google Chrome Personal.app . - Copy the wrapper.sh script file (below) into the
Contents/MacOS directory. - Change the
Contents/Info.plist in this new application to point to the shell script (set CFBundleExecutable to wrapper.sh ) and have a unique CFBundleIdentifier (just add "Personal" to the existing value).
Here is my modified wrapper.sh script file. Put it in /Applications/Google\ Chrome\ Personal.app/Contents/MacOS/wrapper.sh and then edit Info.plist, as in step 4.
#!/bin/bash # Wrapper script that starts independent instance of Google Chrome for Mac # To use: copy Google Chrome.app to a new location. Copy this script into # the Contents/MacOS directory of the copied app. Edit the copied app's # Contents/Info.plist and change CFBundleExecutable to "wrapper.sh", # and pick a unique CFBundleIdentifier. # Instance data will be stored here. You can copy your existing data # to this location if you want to preserve your existing user profile(s). # You can also change this if you want to store the data somewhere else. INSTANCE_DIR="/Users/$USER/Library/Application Support/Google/ChromePersonal" # Find the Google Chrome binary: CHOME_BIN="$(dirname "$0")/Google Chrome" # Start Chrome exec "$CHOME_BIN" --user-data-dir="$INSTANCE_DIR"
(full disclosure: I also posted this answer on apple.stackexchange )
source share