Jump to content

Alfred Browser Tabs - Search browser tabs from Chrome, Brave, Vivaldi, & Safari

Recommended Posts

This workflow allows you to search browser tabs from Chrome, Brave, Vivaldi & Safari.


GitHub: https://github.com/epilande/alfred-browser-tabs

Download: https://github.com/epilande/alfred-browser-tabs/releases/latest/download/Browser-Tabs.alfredworkflow



chrome tabs {query} – Fetch tabs from Google Chrome and filter based on query.

brave tabs {query} – Fetch tabs from Brave Browser and filter based on query.

vivaldi tabs {query} – Fetch tabs from Vivaldi and filter based on query.

safari tabs {query} – Fetch tabs from Safari and filter based on query.


Copy to clipboard

Holding the CTRL key while selecting an item will copy the selected tab URL to your clipboard.





Screenshot of workflow




Edited by epilande
Link to comment
  • 1 month later...
  • 3 months later...
  • 3 months later...

Thanks for this useful workflow. Please include website icon if that is possible. It is easier to quickly pick out targeted website by website icon like how Safari shows icon and description of each tab compared to reading wordy description of each tab displayed by workflow. Thanks.

Link to comment
On 2/1/2021 at 10:41 PM, altryne said:

I'd love to know if it's possible to grab the favicons as well?


13 minutes ago, iApple said:

Please include website icon if that is possible.

It’s not feasible without an unreasonable amount of work or making the Workflow considerably slower.

Link to comment
  • 5 weeks later...
  • 2 weeks later...

This is a wonderful workflow, can't work without it now.
Just one question: (I am on Mac OS Big Sur) Does anyone know why does it open let's say a minimized tab you're searching for AND a minimized window next to it. I always get two windows open after I search: the one I need and the one what seems next to it. 

Link to comment
  • 2 weeks later...
  • 1 year later...

Hi, when I use this workflow on Safari, there's a 'flash' (or something else that happens very quickly) before the selected tab is displayed. I don't see it in the animation included in the first post of this thread (although that is an example using Chrome and not Safari).


Other users of the workflow: is this happening for you?

Link to comment
  • 2 weeks later...

This works great on one MacBook but not at all on another.  Both are Ventura - the working one is Ventura 13.5.2 (M1) and the other is Ventura 13.6 (M1).  

On the Mac with issues I see "Safari Tabs" as a choice when I hot key to Alfred


but when I choose that I just get the usual Google and other search choices:  


Compared to the list of possible tabs I get on the other system.   I turned on the debugger and get:


[17:29:01.499] Logging Started...

[17:29:11.078] Browser Tabs[Script Filter] Queuing argument '(null)'

[17:29:11.232] Browser Tabs[Script Filter] Script with argv '(null)' finished

[17:29:11.236] ERROR: Browser Tabs[Script Filter] Code 1: ./list-tabs-webkit.js: execution error: Error: Error: An error occurred. (-1743)

A side note, the working system shows options to configure the workflow in Alfred but I don't see those on the system with problems.

Link to comment
1 hour ago, vitor said:

That error number, 1743, indicates a lack of permissions. Check the Privacy and Security tab in System Settings. Make sure Alfred has the same permissions on both machines, particularly under Automations and Accessibility.


Thanks - that was the issue.   I had to enable Automations for Safari for Alfred.  I appreciate the help.

Link to comment
  • 1 month later...

I'm having a similar problem on macOS Sonoma - I entered a GitHub Issue when I first encountered it, but haven't seen any responses there. Does anyone here have this workflow functioning in Sonoma? I've checked Privacy & Security as mentioned above, everything's enabled. The Safari setting is enabled, too. Alfred 5 is up-to-date.


ERROR: Browser Tabs[Script Filter] Code 126: /Users/bruth/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/7FBFA554-C1F4-42FE-8419-D33AA3BAEAF2: line 1: ./list-tabs-webkit.js: Permission denied


Link to comment

I think I actually just fixed this. Now I feel stupid for not looking at this more closely - the error being thrown is "line 1" - which I assumed was something in the script being executed, but it was really just saying "hey, this file isn't executable" - .js files typically aren't, but that's how this workflow is setup - and now, apparently in Sonoma, those files need to be executable. So I ran


$ chmod +x ~/Library/"Application Support"/Alfred/Alfred.alfredpreferences/workflows/<my GUID for this workflow>/*.js


Now everything appears to work.

❯ ls -l ~/Library/"Application Support"/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D2D2FD7C-8951-4DFB-9011-F215D92C0F9E/"
total 1208
-rw-------  1 bruth  staff  190371 Aug 27 08:34 05291F67-A2F4-49A2-A3AA-23923B919638.png
-rw-------  1 bruth  staff  127297 Aug 27 08:34 1EF5C902-0F47-47F1-BCBB-5BA273DE5101.png
-rw-------  1 bruth  staff   34514 Aug 27 08:34 45BA3C52-3F5F-462D-8F18-DE516A900E69.png
-rw-------  1 bruth  staff   81857 Aug 27 08:34 7E9CA23F-2FF6-47EF-993D-6157788B9FD4.png
-rw-------  1 bruth  staff   85450 Aug 27 08:34 C670C61E-A7A8-4A02-9A61-453AAD409775.png
-rwx--x--x  1 bruth  staff     686 Aug 27 08:34 focus-tab-webkit.js
-rwx--x--x  1 bruth  staff     463 Aug 27 08:34 focus-tab.js
-rw-------  1 bruth  staff   37446 Aug 27 08:34 icon.png
-rw-------  1 bruth  staff   28878 Aug 27 08:34 info.plist
-rwx--x--x  1 bruth  staff    1248 Aug 27 08:34 list-tabs-webkit.js
-rwx--x--x  1 bruth  staff    1313 Aug 27 08:34 list-tabs.js


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...