1
Thanks for taking the time to look at this. Before I get started I'd just like to add a precursor to this question: I'm only looking for a solution to the problem outlined, comments such as: "Use Ubuntu!", or "QuickSilver does that" aren't useful to me. Presume that I know what I am on about and have made my software choices for a reason. That said, I could use your help! So without further ado...
Basically I'm looking for a way of defining that all folders inside a certain folder (~/Sites in my case) behave slightly differently than all other folders on the system. So in my case I want all folders to open in finder as normal except for folders that are children of the ~/Sites folder, I want those folders to open in TextMate.
My use case is using Google Quick Search Box to find a folder and then executing the open command, but I'm sure there are other reasons why this kind of functionality might be desirable.
I don't think Google QSB supports any other action other than open when you press return after selecting a folder. Also, I was unable to set the Open With for a folder using either the Finder or Path Finder. Using the "mate" command in bash on a folder opens it in TextMate. If you could somehow create a script that would open the folder using the "mate" command, I think you would be set. – fideli – 2009-12-30T08:22:57.510
1Yes. Despite OSX's GUI niceness I find myself at the zsh prompt for the majority of my work. There this kind of thing is extremely easy, and I have various custom scripts to obtain my desired functionality. Really what I was looking for was a way to give QSB some 'smarts' so that I didn't even have to think about about launching through it. It would see a requested folder was in my ~/Sites dir, go "that's a textmate project" and react accordingly with no further user input. As you correctly infer, anything else is less efficient than just doing it in terminal. – i0n – 2010-01-11T17:32:33.890