Allan,<br><br>Thanks for this, it exactly answered my question :-)<br><br>And thanks for TextMate, I really like it and even though I hadn't used it, simply reading about it influenced my decision to buy a Mac.<br><br>
Graham<br><br><div><span class="gmail_quote">On 09/03/2008, <b class="gmail_sendername">Allan Odgaard</b> <<a href="mailto:throw-away-2@macromates.com">throw-away-2@macromates.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 7 Mar 2008, at 09:00, Graham Smith wrote:<br> <br> > [...]<br> <br>> 1. Is there a "good practice" place to put such snippets of code<br> <br> <br>When a bundle item requires a certain script it can be put under<br>
 Support/bin in the same bundle.<br> <br> The Support folder of the bundle is exposed as the TM_BUNDLE_SUPPORT<br> environment variable (and "$TM_BUNDLE_SUPPORT/bin" is automatically<br> put in the PATH for bundle commands w/o a shebang).<br>
 <br><br> > 2. I put it in ~Library/Application Support/Textmate/Code<br> ><br> > Adding the "Code" folder to the existing directory tree.<br> ><br> > But this led me to a new problem in that I couldn't work out how to<br>
 > get that<br> > directory tree  found when trying to run the code. In Windows,<br> > because of<br> > the space in "Application Support"  I would gve the full and wrap it<br> > in<br> > quotes, but the cmbinations I tried failed to work.<br>
 <br> <br>Not sure exactly how you call what, but you want either:<br>      ~/Library/Application\ Support/Textmate/Code<br> or:  "$HOME/Library/Application Support/Textmate/Code"<br> <br> The tilde is not expanded inside quotes, likely that was your problem.<br>
 <br><br> <br> ______________________________________________________________________<br> For new threads USE THIS: <a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br> (threading gets destroyed and the universe will collapse if you don't)<br>
 <a href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</a><br> </blockquote></div><br>