jnewland/alfred-open-windows

Does not work with Visual Studio Code

tituswoo opened this issue ยท 5 comments

When I open multiple windows in Visual Studio Code, and it is the currently focused/active application, the workflow is unable to recognize that Code has any windows open at all. It is just blank, like this:

image

Again thanks for this workflow. It's an absolute gem!! ๐Ÿ˜„ ๐ŸŽ‰

Interesting! Does this applescript return a list of windows when run in the Applescript Editor?


set output to ""
set theapp to "/Applications/PATH TO VISUAL STUDIO CODE"
tell application theapp
	set mywindowlist to the name of every window whose visible is true
end tell


repeat with n in mywindowlist
	set output to output & n & return
end repeat
return output

Thanks for the quick reply! ๐Ÿ˜„
This is what I'm getting:

image

Hmm, that's interesting! The same applescript works fine with all other applications that I'm using, so I'm not sure how to address this problem offhand :/.

Doesn't work for Visual Studio Code for me too. Perhaps it's because VS Code is an electron app and doesn't have an applescript dictionary. Is there any way to add support to it?

Love the workflow.