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

Taboo - Prevent tab closing stupidity in Safari Pick of the Week
Taboo icon The macosxhints Rating:
10 of 10
[Score: 10 out of 10]
A simple PotW this week, as it really only does one thing. Taboo is a plug-in for Safari that warns you if you hit the red close button and you have more than one tab open. That's it. But in my workflow with hints, this is a key feature -- I usually open 15 to 20 tabs, each containing a hint to be reviewed. I will then open additional windows as I go to check other sites, documentation, etc. Sometimes, especially after having switched out of Safari and back, I'll accidentally click the close box on the wrong window, and presto, there go all my Hints tabs. Taboo prevents this, popping up a warning when I try to do something stupid.

Taboo also has the ability to override Safari's new "you're downloading an application, continue?" warning message, via a simple command-line preference switch. I don't use this feature, though, as I always leave this option disabled (although 10.4.1 fixes the issue with widgets auto-installing themselves, I still don't trust the browser to make decisions for me!).
    •    
  • Currently 1.78 / 5
  You rated: 1 / 5 (9 votes cast)
 
[24,981 views]  

Taboo - Prevent tab closing stupidity in Safari | 39 comments | Create New Account
Click here to return to the 'Taboo - Prevent tab closing stupidity in Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Widget (in)security
Authored by: sjonke on May 18, '05 10:54:17AM

10.4.1 does not really fix the widget issue. To my mind the real issue with that is that widgets get downloaded into a different place from any other download and the user is not notified of this. Widgets go directly into ~/Library/Widgets/ 10.4.1 does not inform the user that this is going to happen, it just says the exact same thing as it does for other downloads which go into your Downloads folder: that it is an application. Widgets should download to your Downloads folder and double-clicking one should offer to install it, as opposed to automatically copying it to ~/Library/Widgets/ without asking, which is what it currently does. Double-clicking a file should not result in the file being copied to another location without intervention.

---
--- What?



[ Reply to This | # ]
Widget (in)security
Authored by: freebee on May 19, '05 10:48:15AM

This does not happen on my system...I do not have a widgets folder on the user level...and when i download then...they go to my desktop (as do all of my downloads). The only thing I changed in Safari was the location of my downloads... maybe changing your download destination to the desktop will solve your problem..or create a "downloads" folder on your desktop.



[ Reply to This | # ]
Taboo - Prevent tab closing stupidity in Safari
Authored by: sjonke on May 18, '05 10:58:16AM

Now, Taboo is great. And I do use that dialog-box killing feature, which might seem contradictory to what I said about widgets, but it isn't - I'm a savvy user and know what is going to happen when I download something. However, I wouldn't need this setting, and I'd be more secure, if that "it is an application" dialog box was only presented when the download was not the result of a direct click. I.e. only when something is downloaded suspiciously.

---
--- What?



[ Reply to This | # ]
OmniWeb has this already built-in
Authored by: poenn on May 18, '05 11:15:47AM

I use OmniWeb since the "early days". It comes with the mentioned feature already built-in: When closing a window with several Tabs open, it asks you if you're sure.
Since it does not install Widgets by default, it also does not suffer from this "security issue".

With all the Pro-Features of OmniWeb I just can't go back to Safari, give it a try if you haven't already!



[ Reply to This | # ]
Yeah, but you paid $30!
Authored by: maddys_daddy on May 18, '05 01:36:50PM
That's fine if you're willing and/or able to pony up the $30 for a web browser! But since Safari is an excellent and FREE browser, this FREE plugin is great.

[ Reply to This | # ]
Yeah, but you paid $30!
Authored by: diamondsw on May 18, '05 02:03:52PM

Sometimes you get what you pay for.

I use Safari and love it, but OmniWeb has a HUGE number of powerful features that Safari doesn't come close to.

Now if only they'd allow either a tab drawer or a tab bar, and switch between the two as needed.



[ Reply to This | # ]
Restore Tabs
Authored by: CaptDeuce on May 18, '05 11:23:26AM

Instead of putting up an annoying "are you sure?" dialog, I'd rather have a gadget that simply remembers the tabs you did have in the last window (or three) when you closed it.

---
--
"Where's my other sock?" - A. Einstein



[ Reply to This | # ]
Restore Tabs
Authored by: robg on May 18, '05 12:05:23PM

Saft will do this -- it's on the 2004 Pick of the Week table. It's got a ton of other cool features, but it's not free...

-rob.



[ Reply to This | # ]
Restore Tabs
Authored by: sjk on May 18, '05 02:53:38PM

Since you brought up this off-topic ...

One reason I originally bought Saft was for its ability to save/restore Safari tabs. However, over time I found that feature to be of limited value because of several interface limitations, such as:

• The inability to review saved "tab sessions" to see how many and which pages will reopen.
• And no way to rename or otherwise reorganize saved tabs.
• It's only possible to delete one or all saved tabs at a time, i.e. no multi-item selection.
• Saved tabs are embedded in Safari's preferences file, without any import/export capability(!) That was certainly the most frustrating limitation after saved tabs mysteriously disappeared a few times; restoring a Safari prefs backup is an unacceptable way to recover them.

It also hasn't helped that the developer remains unresponsive to specific suggestions for improvements of those and other issues. And a feature like printing header/footer info in Safari 2.0 is easier use via printer presets than bringing up Saft's preferences. For now I'll see how well I can survive on Tiger without the few Saft features I do like before deciding whether it's worth paying for the 8.x upgrade, while keeping an eye on SafariStand development.

Now, back to the primary topic ...

I tried Taboo with Safari 1.3 and quickly realized it wasn't helpful when using cmd-W to close tabs/windows; I rarely click to close them. Intercepting cmd-Q has value but not enough to justify a plugin rather than simply changing that shortcut. Soon after installing Taboo I had trouble with "phantom" windows that only showed up under the Window menu or minimized to the Dock, but weren't actually displayed (maybe some obscure conflict with CodeTek Virtual Desktop).



[ Reply to This | # ]
Restore Tabs
Authored by: luai on May 18, '05 11:03:51PM

There were two nice scripts called: (Saving Session & Restoring Session).
They work very well under panther bun not anymore with tiger.
I don't remember their origin, but they were really helpful. you can save ALL your windows and tabs for a later session-hence the name.
I am posting the text of these scripts, so as any Scrip guru can help modifying them to work in Tiger.
Saving session:

-- localizations
property windowMenu : "Window"
property nextTabMenuItem : "Select Next Tab"
-- end localizations

property url_list : {}
property docCount : 0


tell application "Safari"
activate
set docCount to count of documents
end tell

tell application "System Events"
tell process "Safari"

set menuItemCount to count of menu items of menu windowMenu of
menu bar 1
set menuItemOffset to menuItemCount - docCount

set url_list to {}

-- count the windows
set winCount to count of windows

-- loop through the windows
repeat with k from 1 to winCount

set winNum to k

set winTitle to title of window winNum

-- a bit nasty, but the front window is always number 1
set winNum to 1

if (count of characters of winTitle) > 20 then
set winTitle to text 1 thru 20 of winTitle
end if

repeat with j from menuItemOffset + 1 to menuItemCount
if ((title of menu item j of menu windowMenu of menu bar 1)
starts with winTitle) then
set itemNum to j
exit repeat
end if
end repeat

-- activate a window
click menu item itemNum of menu windowMenu of menu bar 1

set firstUrl to ""

-- check for browser window
if (count of radio buttons of window winNum) > 0 then

-- activate the first tab
click radio button 1 of window winNum

-- url of first tab
set firstUrl to value of text field 1 of group 1
of splitter group 1 of window winNum

-- save the url
set url_list to url_list & firstUrl

my nextTab()

-- url of the next tab
set nextUrl to value of text field 1 of group 1
of splitter group 1 of window winNum

repeat until firstUrl is equal to nextUrl

-- save the last url
set url_list to url_list & nextUrl

my nextTab()

-- url of next tab
set nextUrl to value of text field 1 of group 1
of splitter group 1 of window winNum

end repeat

-- empty line to seprate windows
set url_list to url_list & ""

end if

end repeat
end tell
end tell

-- convert url list to text
set old_delim to AppleScript's text item delimiters
set AppleScript's text item delimiters to return
set url_list_text to url_list as text
set AppleScript's text item delimiters to old_delim

-- get path to prefs file where URLs will be stored
set prefs_folder to path to preferences folder as string
set prefs_file to prefs_folder & "Safari Saved URLs"

try
set open_file to
open for access file prefs_file with write permission
-- erase current contents of file:
set eof of open_file to 0
write url_list_text to open_file starting at eof
close access open_file
on error
try
close access file prefs_file
end try
end try

-- let the user know we are done.
tell application "Safari"
activate
display dialog "All Done" buttons {"OK"} default button 1
end tell


on nextTab()
tell application "Safari" to activate
tell application "System Events"
tell process "Safari"
click menu item nextTabMenuItem of
menu windowMenu of menu bar 1
end tell
end tell
end nextTab

Restoring Session:

tell application "Safari" to activate

-- get path to prefs file where URLs are stored
set prefs_folder to path to preferences folder as string
set prefs_file to prefs_folder & "Safari Saved URLs"

try
-- read the saved urls
set open_file to
open for access file prefs_file without write permission
set url_list to read open_file using delimiter return
close access open_file

set tmpList to {}
set newUrl_list to {}

-- make urls from file into a list of lists
-- each window is a seperate list in the big list
repeat with aURL in url_list
if aURL & "x" is "x" then
set newUrl_list to newUrl_list & {tmpList}
set tmpList to {}
else
set tmpList to tmpList & aURL
end if
end repeat

-- don't forget the last list, or maybe the only
set newUrl_list to newUrl_list & {tmpList}

tell application "Safari"

-- loop through the list of windows
repeat with urls in newUrl_list

my new_window()
set emptyWindow to true

-- loop through the list of tabs
repeat with aURL in urls
if emptyWindow then
set emptyWindow to false
else
my new_tab()
end if

-- open the url
set URL of document 1 to aURL

end repeat

end repeat
end tell
on error
try
close access file prefs_file
end try
end try

-- let the user know we are done.
tell application "Safari"
activate
display dialog "All Done" buttons {"OK"} default button 1
end tell

on new_tab()
tell application "Safari" to activate
tell application "System Events"
tell process "Safari"
click menu item "New Tab" of menu "File" of menu bar 1
end tell
end tell
end new_tab

on new_window()
tell application "Safari" to activate
tell application "System Events"
tell process "Safari"
click menu item "New Window" of menu "File" of menu bar 1
end tell
end tell
end new_window



[ Reply to This | # ]
Restore Tabs
Authored by: kadis on May 18, '05 11:24:09PM
I believe it may be from Daring Fireball: Save and Restore Safari URLs < http://daringfireball.net/2003/02/save_and_restore_safari_urls >

[ Reply to This | # ]
saving/restoring tabs
Authored by: sjk on May 19, '05 11:50:04PM

And there've been several variations of the script posted here on MacOSXHints. Shortcomings aside, Saft's method of saving/restoring tabs was the most reliable for me.



[ Reply to This | # ]
Restore Tabs
Authored by: osxpounder on May 18, '05 01:59:59PM

Opera has it -- or something close, if I understand you correctly. One of the many nice things about Opera that had me using it for years on Mac and PC was the feature that remembered what windows you had open last, and re-opened them, if you wished, next time you loaded Opera. It wasn't ideal -- you were asked, when starting Opera, if you wanted to re-open the windows you last used, but unless you remembered, you'd have no idea what they were, or how many. This means you could click "Yes" and wait, wait, wait for 5 or more windows to load their URLs. Or, you could find what some other person had last viewed in Opera on the same computer. What you couldn't do, AFAIK, was see a list of the URLs you had open at the time you last quit Opera.

It worked with windows or tabs, though.

---
--
osxpounder



[ Reply to This | # ]
Restore Tabs
Authored by: nicka on May 18, '05 06:00:21PM

Why doesn't any browser have an Undo button that restores the last tab or window you shut?

And is there a browser that can list your browsing history by last-closed instead of last-opened? That way if you closed a tab by mistake it would be at the top of the history list to be easily re-opened. A _really_ smart browser would keep the last few closed tabs cached so that they would re-open instantly.

Just dreaming, I suppose...



[ Reply to This | # ]
Restore Tabs
Authored by: jonte on May 19, '05 04:38:26AM

Opera does this.



[ Reply to This | # ]
Restore Tabs - UndoCloseTab
Authored by: knujon on May 19, '05 01:27:27PM

Firefox users can install an extension that does just that -- undo a closed tab. The extension is called 'undoclosetab,' by "Dorando." Note that as of today (May 19, 2005) the 'Install' link on the Firefox Extension page for this extension does not work; you need to get the file from the author at http://mozilla.dorando.at/undoclosetab.xpi, choose Open from within Firefox, select the .xpi file, and install it that way. It adds "Undo Close Tab" to the context menu when right-clicking any tab.



[ Reply to This | # ]
Great! Now how to import Passwords from Firefox?
Authored by: alexmathew on May 18, '05 11:37:10AM

Taboo has removed one of the last reasons I use Firefox. There is one more - which is the "Click and Hold on a Link to pop-up contextual menu" in Firefox - in Safari, I need to Ctrl-Click (two hands!!).

Also, is there any way to import Firefox site username passwords into Safari?

Thanks
AM



[ Reply to This | # ]
Great! Now how to import Passwords from Firefox?
Authored by: fiddler on May 18, '05 11:52:51AM

Why should Safari introduce contextual menu behavior that is inconsistent with the rest of the OS?

Please, don't mention the Dock. Just because the Dock does it doesn't make it right.

The above question is along the same lines as "Why should Mail introduce interfaces that are unique only to Mail?" and "Why should some apps quit when you close the app's last window, and some apps not?". Oh wait, that's already happened...



[ Reply to This | # ]
Great! Now how to import Passwords from Firefox?
Authored by: malarkey on May 18, '05 03:25:29PM

Apple recommends in their human interface guidelines that applications that have one main window (eg, Calculator, System Preferences) quit when that window closes and applications that can have multiple windows or can create new windows for data (eg, Mail, TextEdit, Safari) shouldn't automatically quit.



[ Reply to This | # ]
Click and Hold...Fruitmenu
Authored by: alexmathew on May 19, '05 10:58:39PM

Yes, I know Click and Hold will make it inconsistent - but if you use a portable, you probably know how useful this feature would be. I use Fruitmenu to get Click and Hold in the Finder - but it does not work in Safari.



[ Reply to This | # ]
Great! Now how to import Passwords from Firefox?
Authored by: dtfarmer on May 18, '05 07:36:12PM
There is one more - which is the "Click and Hold on a Link to pop-up contextual menu" in Firefox - in Safari, I need to Ctrl-Click (two hands!!).

That's what I like to call a $15 feature. Go buy a $15 kensington usb 2-button mouse, then right-click to your heart's content... (doesn't have to be kensington, any usb mouse will do, you might even find 'em under $10)

[ Reply to This | # ]
Great! Now try this in an Airplane seat..
Authored by: alexmathew on May 19, '05 10:55:12PM

You DO know that Powerbooks/iBooks CAN be used off the table/desk? I can barely fit my laptop - leave alone a mouse. Did you also know that Portable sales of Apple have grown faster than desktop sales?



[ Reply to This | # ]
What we REALLY need..
Authored by: Chas on May 18, '05 01:53:01PM

I'd be a very happy if Apple or some third-party would fix the ONE most GLARING problem in Safari. Someone needs to add a dialog "Do you really want to Quit? [cancel] [quit]" box after a Command-Q. Since Cmd-Q and Cmd-W are so close together on they keyboard, I have quite frequently missed the W and hit Q by mistake, blowing away all my open Safari windows without any chance to abort the quit.



[ Reply to This | # ]
cmd-Q handler
Authored by: sjk on May 18, '05 02:59:27PM

Oh, maybe I was wrong about Taboo handling cmd-Q. It only intercepts gumdrop-clicking to close a window containing multiple tabs?



[ Reply to This | # ]
To each their own
Authored by: sjonke on May 18, '05 03:12:54PM

I really hate programs that require confirmation of quitting. I rarely ever hit command-q by mistake. I'd rather have that unfortunate outcome occur very, very rarely and not be annoyed 99.999% of the time. Now, accidentally closing a window that contains multiple tabs - that is something that happens not uncommonly, and so I do have Taboo installed. Works great.

---
--- What?



[ Reply to This | # ]
To each their own
Authored by: poenn on May 18, '05 04:12:54PM

I sometimes do accidently Command+Q instead of +W, but OmniWeb DOES remember all open tabs and windows and restores them automatically at the next launch. You can even define workspaces which is very well done!

Yes, it costs money and yes, Safari is free, but I think all the little things the Omnigroup thought of plus all the pro features other brothers don't have, make up for that.



[ Reply to This | # ]
To each their own
Authored by: robg on May 18, '05 05:49:08PM

The easiest solution for this is to just use the Keyboard panel to remap Command-Q -- I do this for all programs I don't usually quit. In addition, I also switch Command-L in iChat -- it's "highlight URL bar" in Safari, but "Logout" in iChat.

Before I made this switch, I can't tell you how many times I logged out of iChat when I thought I was going to enter a URL in Safari!

-rob.



[ Reply to This | # ]
What we REALLY need..
Authored by: spacehaven on May 18, '05 08:58:36PM
I'd be a very happy if Apple or some third-party would fix the ONE most GLARING problem in Safari. Someone needs to add a dialog "Do you really want to Quit? [cancel] [quit]" box after a Command-Q. Since Cmd-Q and Cmd-W are so close together on they keyboard, I have quite frequently missed the W and hit Q by mistake, blowing away all my open Safari windows without any chance to abort the quit.

This plagued me soon after the introduction of tabs. I use tabs liberally, often opening links in new tabs, 'flipping' to that tab, then closing it, rather than using the back button. Every once in a while I would hit the quit key by accident.

I found an easy fix -- go to the Keyboard control panel and assign shift-ctrl-command Q to Quit for the Safari application, and it re-assigned the quit button to that more-difficult key combination.


[ Reply to This | # ]
Taboo - Prevent tab closing stupidity in Safari
Authored by: dtfarmer on May 18, '05 07:39:16PM
A simple PotW this week, as [Taboo] really only does one thing ...[snip]... Taboo also has the ability to...

now that's classic!

[ Reply to This | # ]
Taboo - Prevent tab closing stupidity in Safari
Authored by: robg on May 18, '05 07:45:46PM
Excuses, please pick one:
  • I did say "really only" and not just "only."
  • I thought about changing it when I was done and re-read it, but it was late so I bagged it.
  • Is that more than one thing?
  • One of the two doesn't work at all; you have to figure out which
  • I can't count at all
  • There was a ghost writer at work today; clearly, the ghost should be fired.
:)

-rob.

[ Reply to This | # ]
Taboo - Prevent tab closing stupidity in Safari
Authored by: cryptlib on May 19, '05 07:49:26AM

If you rely on the mouse/trackpad enough to find Taboo useful, then you should consider ways of interacting with the computer that are less likely to cause repetitive stress injuries. For instance, instead of straining the wrist and forearm each time you need to target a little red button, hold down command with yr thumb and strike W with yr index finger to close the active tab in Safari; when you are sure that you want to close all tabs, use shift-command-W. To close an unfocused window, command-tab to the application and command-` to the particular window: Inconvenient if you want to close an unfocused window, but if y'r doing that often, you've already learned bad habits that no single plugin can totally ameliorate.

---
% kill -H -1

[ Reply to This | # ]

Can be installed in your own ~/Library.
Authored by: Oops on May 19, '05 09:07:41AM

I'm skittish about Package Installs and having things installed in /System or /Library, so some time ago I purchased a license to Pacifist. Using Pacifist, I saw where these were to install, in /Library/InputManagers/ and in /Library/Application Support. Using Pacifist, I extracted each part to my Desktop instead, and created the appropriate folders in my ~/Library and installed it there. It still works!

Perhaps it makes no difference, but I feel better.



[ Reply to This | # ]
Taboo - Prevent tab closing stupidity in Safari
Authored by: truhe on May 22, '05 03:23:46AM

"I don't use this feature, though, as I always leave this option disabled"

How do you disable the annoying warning in Safari?



[ Reply to This | # ]
Taboo - Prevent tab closing stupidity in Safari
Authored by: kevin_1 on Jan 23, '06 05:17:44PM

it also provide disable annoying security warning.



[ Reply to This | # ]
Taboo - Prevent tab closing stupidity in Safari
Authored by: rlmsfo on May 04, '06 11:27:25PM

Has anyone else had any trouble with Taboo? I installed and it is not working with Safari... I just migrated from a G4 Powerbook to a Core Duo Mac Mini. Taboo worked on the Powerbook just fine, then on the Mini, but after i ran Safari Enhancer, Safari now puts out no warning when closing multiple tabs. UGH!



[ Reply to This | # ]
Taboo - Prevent tab closing stupidity in Safari
Authored by: pbanas on May 10, '06 10:19:25PM

I'm also running Taboo on a Powerbook where it works fine, and on a Intel iMac where it has never worked. Both machines are running Safari 2.0.3.

Please a fix soon! I've already closed windows 2 times losing all of my progress.



---
http://www.greatdad.com



[ Reply to This | # ]
Taboo - Prevent tab closing stupidity in Safari
Authored by: sadieking on Jun 20, '07 06:50:04AM

I cannot download Taboo form anywhere, is it still available? Can anyone tell me where I can get it from.

I have managed to get a programme called forgetmnot which will unclose a window if I accidently close it, but it loses all my history within the window and tabs and only gives me the last page.

What I really need is what Taboo does, and warn me I am about to shut the window with multiple tabs.

Help anyone please!



[ Reply to This | # ]
Taboo - Prevent tab closing stupidity in Safari
Authored by: jeandeaux on Sep 05, '07 08:12:49AM
Taboo - Prevent tab closing stupidity in Safari
Authored by: jeandeaux on Sep 05, '07 08:37:40AM

Unless an older version of this program did something different,
I disagree with sjonke's statement that "the user is not notified of this"
when the widgets get downloaded into a different place from any other
download.

In fact, the developer has done a great job with the installer, and
keeps the user well informed of what's going on throughout the process.
The downside is that there seems to be no uninstaller, and if you weren't
paying close attention during the install, and missed where the widgets
were placed, it's not easy to uninstall them.

JD



[ Reply to This | # ]