Activate Safari/Chrome and Select an Existing Tab vs Creating a New Tab

Is there a way to open an existing tab in Safari or Chrome vs opening a duplicate version of an existing tab? I can see how easy it is to open new tabs in these browsers, but once I open such a tab, I would like a way to quickly return to it vs opening up additional duplicate tabs.

Yes, but you have to do it via AppleScript, since you need to write the code to decide which tab you want.

Basically, you need to scan through the windows and their tabs looking for the desired tab, and if found, select that window/tab, and if not, create a new window/tab.

I don’t have the AppleScript handy, but you should be able to find it on the net, or one of the AppleScript gurus on the list might chime in with the code for how to do this.

1 Like

Hey bdurham,

Try out this macro.

Type-select works.

Selecting a tab will take you to it.

Safari » Switch Tabs-Windows Using Pick-List.kmmacros (5.8 KB)

See this post for an example of switching to a specific tab (Google Chrome not Safari – the coding is not the same but the concepts are.)

Go to Gmail Tab in Chrome

-Chris

1 Like

Hey Folks,

Here's a version that works with Google Chrome.

-Chris


Google Chrome ⇢ Go-To-Tab ⇢ AppleScript Version v1.00.kmmacros (8.5 KB)