Using Firefox on the apple macs we find that a lot of the time it gets stuck "open" or sits in the dock bouncing.
"Close Firefox
A copy of Firefox is already open. Only one copy of Firefox can be open at a time."
We want to help our users help them selves as it saves us time and them time!
So I wrote this apple-script that will reset Firefox back to default for the user.
So here goes!
On the apple mac open up script editor, copy this in.
tell application "Finder"
if exists folder "Profiles" of folder "Firefox" of folder "Application Support" of folder "Library" of home then
-- it exists, do something
tell application "Nightly" to quit saving no
tell application "Finder"
delete the folder "Profiles" of folder "Firefox" of folder "Application Support" of folder "Library" of home
delete the folder "Firefox" of folder "Caches" of folder "Library" of home
end tell
tell application "Finder"
delete the file "profiles.ini" of folder "Firefox" of folder "Application Support" of folder "Library" of home
end tell
display dialog "Your Firefox Profile has been reset.
Please Re-open Firefox!" buttons {"OK"} giving up after 300
else
--it doesn't exist, do something else
display dialog "You dont seem to have run Firefox yet!
Please run Firefox again!
If you are still having problems
Please call IT Support!" buttons {"OK"} giving up after 300
end if
end tell
if exists folder "Profiles" of folder "Firefox" of folder "Application Support" of folder "Library" of home then
-- it exists, do something
tell application "Nightly" to quit saving no
tell application "Finder"
delete the folder "Profiles" of folder "Firefox" of folder "Application Support" of folder "Library" of home
delete the folder "Firefox" of folder "Caches" of folder "Library" of home
end tell
tell application "Finder"
delete the file "profiles.ini" of folder "Firefox" of folder "Application Support" of folder "Library" of home
end tell
display dialog "Your Firefox Profile has been reset.
Please Re-open Firefox!" buttons {"OK"} giving up after 300
else
--it doesn't exist, do something else
display dialog "You dont seem to have run Firefox yet!
Please run Firefox again!
If you are still having problems
Please call IT Support!" buttons {"OK"} giving up after 300
end if
end tell
it will look like this,
Now go to Files --> Save As
Give it a name and click save.
A Super Big Warning
When you run this it will reset your Firefox settings so please either backup all of your settings or do it on a machine / profile that you don't care about. You have been warned! :-D
Yes there are probably better ways of doing this, and yes it can probably be refined, but this works for me so im not gonna change it :-D
If you combine this with my Firefox Default Settings blog then you can make a very streamlined experience for the user.
No comments:
Post a Comment