Jump to content
mandrigin

Swift Windows Switcher [Safari/Chrome tabs support]

Recommended Posts

On 5/23/2017 at 5:55 PM, mandrigin said:

@M1m1s is your Alfred listed in the "Security & Privacy" -> Accessibility? It needs these permissions to be able to switch windows/tabs. 

Fixed, thanks!

Share this post


Link to post
On 5/24/2017 at 4:53 AM, xilopaint said:

v0.2.6 is broken for me because I don't have Chrome installed. v0.2.5 is working fine.

 

 

 

Hmm, tested with no Chrome installed and it works just fine.

 

Can you open Safari, open any webpage there, go the alfred preferences -> workflows -> open in terminal -> type

./EnumWindows --search="Safari"

and post the output here?

Share this post


Link to post
On 5/23/2017 at 7:57 AM, mandrigin said:

@FroZen_X I'm working on it in my spare time, but I didn't find a good and reliable way to switch to the window on a different desktop. But it is on my todo list, I use a few spaces occasionally.

 

I am DYING for this ability. I use spaces/desktops extensively and it would make things so much easier! Pretty please!

Share this post


Link to post
12 hours ago, sr_navarre said:

This workflow sounds great, but I don't understand how to use it. Could someone explain?

 

Just type the keyword ww and hit on the tab you want.

Share this post


Link to post

I can see the "Search Safari tabs" for a split second, but then it switches to google search for some reason and it's not showing the tabs I have opened. Any idea why this happens?

Share this post


Link to post
4 hours ago, Aysun said:

I can see the "Search Safari tabs" for a split second, but then it switches to google search for some reason and it's not showing the tabs I have opened. Any idea why this happens?

 

Do you have Chrome installed?

Share this post


Link to post

Yes, but it's not open.

 

L.E. I restarted my machine and it worked. Strange. This happened before on other workflows.

Edited by Aysun
fixed

Share this post


Link to post

In my case I don't have Chrome installed so I had to delete the following code block to get it working properly:

 

if proc = "Google Chrome" then
    tell application "Google Chrome"
        set active tab index of front window to tabIndex
    end tell
end if

 

Share this post


Link to post
On 9/15/2017 at 7:00 PM, dakush said:

Would it take a lot of work to include other chromium-based browsers (I'm a happy Vivaldi user)? Thanks for this excellent workflow anyway.

 

On 9/15/2017 at 10:35 PM, xilopaint said:

+1

 

I would love to have it working with Opera.


Thank you for the kind words!

Unfortunately, it is not about what engine the browser is using, it is about what functions are exposed to AppleScript automation.

For example, Chrome and Safari have full APIs (list windows and tabs and their properties, switch to the tabs) exposed to AppleScript.
Opera or Firefox doesn't expose anything like that at the moment (I've even asked using some internal channels).


Vivaldi, I don't know about, but seems plausible.

Share this post


Link to post

Thank you so much for this workflow. I have been using it for years and it is one of my most used workflows, especially for the ability to switch between any open window with 'w'.

 

While the 'ww' command to search and open specific tabs in Safari still works for me, the switch to an open application window with 'w' seems now broken.

 

Here is my configuration:

Mac OSX Mojave: 10.14.2

Latest version of Swift Window Switcher: 0.3.0

 

I am not sure what makes it not work anymore. There is no specific message popping up in the Alfred debug console. It was working perfectly previously.

Edited by Guy Stan

Share this post


Link to post
1 hour ago, Guy Stan said:

Thank you so much for this workflow. I have been using it for years and it is one of my most used workflows, especially for the ability to switch between any open window with 'w'.

 

 

Thanks for your feedback! It turns out that is a regression that sneaked in.

I just published a release 0.3.1 here: on GitHub and on Packal that should fix your issue.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...