Sublime Forum

Fetch List of Open Windows from External Script

#1

I use Alfred on my Mac pretty extensively. I keep all my project directories in a single folder, and I’d love to write a workflow that shows me a list of them and lets me either launch a ST3 editor in that directory or switch to the open window. Is there a way for me to provide an external script the list of open ST3 windows? I’ve played with the --command option on the subl command, but that doesn’t appear to send output to stdout.

0 Likes

#2

You’ll have to negotiate a temporary file to write the list of windows to in order to read output from ST. You can provide the path for that via --command.

0 Likes