Skip to content

Instantly share code, notes, and snippets.

@takaaki
Created December 22, 2009 02:01
Show Gist options
  • Save takaaki/261433 to your computer and use it in GitHub Desktop.
Save takaaki/261433 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Launch or relaunch Firefox in Safe Mode
# Takaaki Kato <takaaki@samuraicoder.net>
# Assumes Firefox.app is located under /Applications
osascript -e 'tell application "Firefox" to quit'
sleep 3 # wait til Firefox quits
/Applications/Firefox.app/Contents/MacOS/firefox-bin -safe-mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment