Display tabs currently opened in Google Chrome using LaunchBar.
To benefit from version control and diff tools, the Applescript files are kept as plain text .applescript
files and have to be compiled before being installed:
$ git clone https://github.com/thorstenhuhn/launchbar-chrometabs.git
$ make
$ make install
The last step copies the extension files to LaunchBar's default actions folder location ~/Library/Application Support/LaunchBar/Actions
. Alternatively you can doubleclick on the ChromeTabs.lbaction
folder in Finder.
Depending on your system and installed apps and action it should be enough to type chromet (or even ct) in LaunchBar's input prompt to call the action.
It is also possible to get there using LaunchBar's navigation feature starting with the associated Google Chrome application and pressing the right arrow key.
Only normal windows are investigated, incognito windows are intentionally skipped.
All tabs are displayed using the default Google Chrome icon. There might be different ways to get a tab's favicon but they are currently considered as dirty hacks:
- Chrome's favicon cache
chrome://favicon/
seems to keep only small versions of icons (16x16) and I don't know howto access the cache from LaunchBar. Accessing it from within a chrome extension is discussed at Stackoverflow and said to be undocumented and unreliable. - Chrome's internal database (located in
~/Library/Application Support/Google/Chrome/Default/Favicons
with Chrome Version 47) is locked and has to be copied to gain access. Location and structure might change and exporting the binary data to disk might become a performance issue.