Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Reset Firefox preserving bookmarks on many machines' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Reset Firefox preserving bookmarks on many machines
Authored by: macsadmn on Mar 10, '11 07:39:34AM

Nice hint!

It's good to know that others have experienced this same issue with FireFox.

I took what you made and tweaked/added a few things that may be beneficial:

Instead of directing your users to the Mozilla webpage on how to recover their bookmarks, you can add these lines to the bottom of your shell script that will force FireFox to reimport the backed up bookmarks:

######

# Quitting Firefox
killall firefox-bin

# Pausing 3 seconds
sleep 2

# Remove places.sqlite, if it was created
# This will force FireFox to automatically recover bookmarks from backup
rm ~/Library/Application\ Support/Firefox/Profiles/********.default/places.sqlite

# Pausing 3 seconds
sleep 2

# Launch Firefox
open /Applications/Firefox.app

# Pausing 5 seconds
sleep 5

######


To alert users when the script has finished, I added the following lines immediately after your "do shell script" statement in the AppleScript:

tell application "System Events" to activate
tell application "System Events" to display dialog " !!!!! FireFox Reset Complete !!!! "



Again, thank you for posting the hint. Well done!



[ Reply to This | # ]