Hey guys,
I’ve been using DTerm for a while on the mac to pop up a basic terminal prompt with the path set to the file or dir currently in the current app. But since upgrading to the latest OSX, DTerm support isn’t that great so I’m looking at alternatives.
I have a hotkey set in iTerm2 to pop a term window up and now I just need to be able to set the path quickly in the terminal. I’ve got a script that sets the path to the last active Finder window, and I’d love to be able to do the same for ST. But I have no idea how to even start figuring out if there is a way through apple script or otherwise to ask Sublime for the path of the file which is in the last active tab in sublime.
Anyone got any ideas if I can query the path of the file in the active tab in ST from the command line?
Cheers,
Dave