(Return to web page)

Post Comments

Comment Guidelines

All comments are moderated. The goal is not simply to eliminate obnoxious stuff, but to only allow useful on-topic discussions -- it's not a place to hang out. Moderation time is expected to be a day or two in most cases, but I do take vacations.

Your comments will be read by me, but they may not be posted. In particular, saying thanks or "you rock" or whatever is certainly appreciated, but I won't add it to the public comments unless there's useful information there for others. Comments that say "you suck" are much more likely to be posted, as long as a reason is given that's somewhat productive. Posting a comment is not a promise to keep it here forever, I may remove any or all comments at any time.

I may edit postings for simple and obvious errors, and I may remove profanity. Only listed HTML terms are allowed in messages. Name and email address will be fully stripped or quoted to prevent HTML tag usage and other possible abuses.

You can provide either a public or a private email address, or none at all. Private addresses are good if you want a personal response from me. I do not provide any automatic notification of new comments.

There is no re-editing after posting, however you can simply post again, and hopefully I'll notice this in moderating, and will post the latest version. If your post is already up, just add another post with any corrections, and in most cases I'll pub up both posts, rather than hand- correcting the original.

Optional Name:
Optional Public Email: (WILL be on web page, although hidden*)
Optional Private Email: (will NOT be displayed, just for me to answer you if I want to)
Remember Me on this browser (uses cookie)
Carriage Returns are:
Allowed tags: <P> <BR> <PRE> <I> <B> <A>.

Prove that you are human by entering here:

*Email addresses are scrambled and encoded in a non-mailto URL. People with javascript see a normal working email link, but robots (and people) without javascript see a URL with gibberish in it. This link is a sample with working javascript (clicking should bring up a mailer), and this link is appoximately how it looks without javascript (click to see how your address will look to people without javascript). If you view the source, you'll see they're all gibberish.


At 2017/05/09 11:27
Bob wrote:

What a great idea - been wanting to do something like this for a very long time. YEARS!!!

I then used this to create a service which allows a keyboard shortcut to be assigned to it and now anytime I need I just type in the shortcut and enter a string and get a list of Safari tabs that I can select from and bam - I'm where I wanted to be. So handy and so easy to use.

Thanks so much - you made my time in Safari so much more enjoyable.

At 2017/08/30 18:59

Thanks, this is great (for a tab sprawler like me)!

I combined it with Safari>Debug>Miscellaneous flags>Show web process IDs in page titles.

Now I can also easily remedy PIDs that Activity Monitor identifies as not responding.

OSX 10.11.6 (15G1611), Safari 11.0 (11604.

At 2017/09/26 10:05
Xiang wrote:

This is a very important feature that Safari has been missing. Vim-emulation plugins for other browsers all allow searching through tabs with just one single key, e.g. Vimperator or cVim. If there could be a shortcut set to invoke this, it would be even better. Seems that one can indeed assign a shortcut to launch Applescript as described at for example here: https://apple.stackexchange.com/questions/175215/how-do-i-assign-a-keyboard-shortcut-to-an-applescript-i-wrote

At 2018/05/15 12:46
Don J J Carroll wrote:

Tuesday, May 15, 2018, 1:33 PM

I have a question about this script. What I am looking for is a way to search tabs in several open Safari (MacOS) windows, not just one window that has several tabs, but multiple window each with multiple tabs. Will this script do what I am looking for? If not, are there other alternatives for me to pursue?

I have tried to copy this script into my Mac OS 10.12.6 Sierra Utilities folder "Script Editor" and it won't allow me. When I open the Script Editor I get a blank dialog box and I can't even type anything into that space.

Here's hoping you knowledgeable folks can help a computer Mac novice!

Don J J Carroll

At 2018/05/15 15:50


Yes it should search all tabs on all open windows.

Try opening the Script Editor Application in /Applications/Utilities, create a new script, and paste the program into the new script window.

At 2018/08/22 2:11
Wayne wrote:

I installed this a few months ago and it was working well - until recently. After launching it from the menu bar it would prompt for the search term but then *poof* - nada/rien/nihil.
Running it from Script Editor revealed that a number of items were returning missing value - quite a few like this:
	get URL of tab 5 of window id 198 
		--> missing value 
and then also this:
	get every tab of window id 804 
		--> missing value 
and the resulting untrapped error was killing the script:
	count missing value 
		--> error number -1700 from missing value to specifier 
So to stop it from bombing I've had to wrap the innards of the scan loop in try/end try:
        if ok then 
                repeat with t in tablist 
                    end try 
                end repeat 
            end try 
        end if 
I can only surmise that this situation is perhaps the result of an embarrassingly large number of Safari windows/tabs, open for an extended period of time.

Thanks very much for publishing your script. While it isn't quite the "Tab Organiser" for Chrome that I'm hoping to one day have it is nonetheless a very useful alternative.

At 2018/09/04 11:17
Demitri wrote:

Would you be willing to put your script as an answer here?


I didn't want to take the liberty of copying your code, but sometimes (when I'm on a new computer) my search engine brings me to that page. Your script is the best solution I've found and I use it all the time!

At 2018/09/04 12:28

Feel free to put either a link to my code, or a copy of the code there. A link is probably better as it will lead people to any corrections or enhancements that get posted here.

At 2019/04/24 10:28
MacsSince87 wrote:

2019-04 Working great in Mojave with mods (1) to ignore spurious windows and (2) to add window activation workaround.
Posted a link to this page and the updated code at:
"Stackoverflow 30242098"

End Comments

Return to web page.