What about something like C-u in emacs?<div><br></div><div>As in, press a key combination, everything typed after that becomes an arguments string, then command-R? command-R on its own just gets an empty string.</div><div>
<br></div><div>-Adam<br><br><div class="gmail_quote">On Thu, Jul 9, 2009 at 2:31 PM, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org">mailinglist@textmate.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 8 Jul 2009, at 17:13, David Guerin wrote:<br>
<br>
> I just started using Textmate recently and at the moment I am trying<br>
> to get<br>
> some Python scripts working with it. Everything works great but I was<br>
> wondering how to you pass command line arguments to a python script<br>
> when you<br>
> run it?<br>
<br>
</div>There is no support for this, it’s not that we don’t want to provide<br>
it, just that it’s not really feasible to do without bringing up a<br>
dialog and that would be a pain for the 99% where you don’t want to<br>
provide arguments.<br>
<br>
What you can do is simply read from stdin then TextMate will show a<br>
dialog, this is how I handle it in most of my scripts, i.e. read the<br>
arguments from stdin instead of command line options (when I know I<br>
mostly run the script in TM).<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" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</blockquote></div><br></div>