Skip to content

Instantly share code, notes, and snippets.

@pcdoyle
Forked from ciphertxt/openmsedgeprofilemacos.sh
Created November 1, 2022 19:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcdoyle/754959c5c072db842df5acb6c3b9b6f5 to your computer and use it in GitHub Desktop.
Save pcdoyle/754959c5c072db842df5acb6c3b9b6f5 to your computer and use it in GitHub Desktop.
Opens a specific Microsoft Edge profile by name on macOS
# Navigate to the profiles directory
cd ~/Library/Application\ Support/Microsoft\ Edge
# List out the profile directories. Note that the directory name is what is used in the launch command, *not* necessarily the friendly name of the profile you see in Microsoft Edge.app
find ./ -type f -name Preferences
# Let's say "Profile 1" is one of our directories
"/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge" --profile-directory="Profile 1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment