dhruv's wiki

Automate Work Startup

Open Chrome with urls

Create a file containing the urls (eg. at ~/.WORK_STARTUP_URLS)


Create a shell script to open chrome. (Mine is in my dotfiles, symlinked to $HOME.

open -n -a "Google Chrome" --args \
    --profile-directory="Profile 4" $(cat $HOME/.WORK_STARTUP_URLS | xargs)

The chrome profile can be found from ~/Library/Application\ Support/Google/Chrome/<Profile Name>. The default profile is probably named Default, with the others named something like Profile 4.

Create a Keyboard Maestro macro that just runs the script.