epilande Posted December 18, 2020 Share Posted December 18, 2020 (edited) 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 Commands 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. Demo Screenshot of workflow Edited December 18, 2020 by epilande ionstorm, Chris Messina and Selma 2 1 Link to comment
Chris Messina Posted December 18, 2020 Share Posted December 18, 2020 Very nice! I just updated @Acidham's similar browser history workflow. @epilande had you seen that one? I like that you included Safari since @deanishe's Safari Assistant is no longer maintained. Link to comment
epilande Posted December 19, 2020 Author Share Posted December 19, 2020 I haven't seen that browser history workflow but looks awesome. Thanks for sharing Link to comment
altryne Posted February 1, 2021 Share Posted February 1, 2021 Thank you! This is a great replacement for the unmaintaned safari tabs one I had for ages! I'd love to know if it's possible to grab the favicons as well? That would make this amazing, but even without it's amazing Link to comment
MrChrisso Posted May 26, 2021 Share Posted May 26, 2021 As someone who keeps way too many tabs open, this is so useful, thanks. Link to comment
iApple Posted September 24, 2021 Share Posted September 24, 2021 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
vitor Posted September 24, 2021 Share Posted September 24, 2021 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
Kelson01 Posted October 23, 2021 Share Posted October 23, 2021 With brave when tab search is used and the tab is on a space that is currently not selected it will not bring you to that space. Link to comment
deanishe Posted October 24, 2021 Share Posted October 24, 2021 53 minutes ago, Undertaker01 said: it will not bring you to that space That's a Brave bug, tbh. It's the application's job to manage its own windows and make sure the right one is visible. It's also not something a workflow can easily work around. Link to comment
Vadim_K Posted November 2, 2021 Share Posted November 2, 2021 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
Sridhar Katakam Posted November 11, 2021 Share Posted November 11, 2021 I've installed the workflow and can get to Safari tabs via a set hotkey or typing safari tabs {query}. From the animated gif screenshot, it looks I can simply start typing the name of one of my open Safari (and Chrome) tabs but when I do that, don't get any matching results. Any idea? Link to comment
deanishe Posted November 11, 2021 Share Posted November 11, 2021 40 minutes ago, Sridhar Katakam said: Any idea? You need to give us some information to work with. What does the debugger say? Link to comment
Sridhar Katakam Posted November 11, 2021 Share Posted November 11, 2021 11 minutes ago, deanishe said: You need to give us some information to work with. What does the debugger say? I shall share in my next post. Here's a screencast: https://www.berrycast.com/conversations/3c91724e-8483-5585-9fc8-1936b52898fb Link to comment
exposition Posted November 8, 2023 Share Posted November 8, 2023 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
Belfong Posted November 8, 2023 Share Posted November 8, 2023 Thanks @exposition for bringing this post out. I have installed it and love this workflow! I don't see any flash though (using Safari only). Link to comment
exposition Posted November 8, 2023 Share Posted November 8, 2023 @Belfong Hmm, thanks for letting me know. I'll try reinstalling the workflow. Link to comment
exposition Posted November 8, 2023 Share Posted November 8, 2023 Now that I've reinstalled the workflow (and looking on a larger monitor), I can see that the Safari window is disappearing momentarily, and the chosen tab is being animated (a zoom-type animation) to the forefront of my screen. @epilande any ideas? Link to comment
p566 Posted November 19, 2023 Share Posted November 19, 2023 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
vitor Posted November 20, 2023 Share Posted November 20, 2023 Welcome @p566, Make sure you have “Allow JavaScript from Apple Events” enabled in Safari. Link to comment
p566 Posted November 20, 2023 Share Posted November 20, 2023 29 minutes ago, vitor said: Welcome @p566, Make sure you have “Allow JavaScript from Apple Events” enabled in Safari. I don't have this set on the other machine and it works. And after setting this on this machine, it still didn't work. Link to comment
vitor Posted November 20, 2023 Share Posted November 20, 2023 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. Link to comment
p566 Posted November 20, 2023 Share Posted November 20, 2023 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
bdruth Posted January 10 Share Posted January 10 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
vitor Posted January 10 Share Posted January 10 @bdruth That looks like a file permissions issue. Do you perhaps sync your preferences with Maestral? Try deleting the workflow and installing it again. That should get you sorted. Link to comment
bdruth Posted January 10 Share Posted January 10 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now