<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sven,<div><br><div>Thanks for your help...</div><div>Can you clarify your solution just a bit?</div><div>I'm a command line beginner and am just a bit confused on how to implement this.</div><div>Where is the executable stored (Applications?) and then how do I call the command, I'm assuming from a Terminal window?</div><div>Does the executable need to be in the same directory? I tried this but I was getting the command not found error in Terminal.</div><div><br></div><div>Thanks again for your help.</div><div><br></div><div><br></div><div><div><div>On Oct 23, 2008, at 5:36 PM, Sven Axelsson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">2008/10/23 Michael Reiner <span dir="ltr"><<a href="mailto:mr@radarseven.com">mr@radarseven.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <div style="word-wrap:break-word">Most excellent, thanks Sven!<div>Didn't know this functionality existed in a Terminal session!</div><div>This is exactly what I needed.</div><div><br></div><div>Now I just need to figure out how to write a simle bundle to automate the process a bit, </div> <div>i.e. create a bundle that will output the current file to an HTML file with the same name and in the same directory.</div><div>Any insight or resources that could point me in the right direction?</div></div></blockquote> <div><br></div><div>Try putting this in a text file:</div><div><br></div><div>php "$1" > `dirname "$1"`/`basename "$1" php`html</div><div><br></div><div>Save it under some convenient name, like do_convert</div> <div>call chmod +x do_convert to make it executable</div><div><br></div><div>and use it like:</div><div><br></div><div>do_convert some_file.php</div><div><br></div><div>that will save some_file.html in the same directory as the input file</div> <div><br></div></div>-- <br>Sven Axelsson<br>++++++++++[>++++++++++>+++++++++++>++++++++++>++++++<br>>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.<br>+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.<br> <br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br><a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a><br></blockquote></div><br></div></div></body></html>