[TxMt] Re: TM hangs while waiting for tm_dialog2

António Afonso antonio.afonso at gmail.com
Mon Jan 26 20:45:35 UTC 2009


On Mon, Jan 26, 2009 at 21:31, Hans-Jörg Bibiko <bibiko at eva.mpg.de> wrote:
>
> On 26.01.2009, at 21:02, António Afonso wrote:
>
>> I was actually hoping to have the script directly in the bundle
>> command, nonetheless, I've put the code in an external file and
>> changed the command to:
>>
>> ruby ~/Desktop/bundle.rb &
>
> try:
>
> ruby ~/Desktop/bundle.rb &>/dev/null

Same behavior

>
> to redirect STDOUT/STERR.
>
> One also can run the script directly as tmcommand by wrapping it in a

I don't think I understand what you mean.. like this?

ruby <<SCRIPT
	token = %x{"$DIALOG" nib --load ~/Desktop/Document --model '{document
= {name = blah;};}'}
%x{"$DIALOG" nib --wait #{token}}
SCRIPT

same behavior again, as with this code:

token=`"$DIALOG" nib --load ~/Desktop/Document --model '{document =
{name = blah;};}'}`
"$DIALOG" nib --wait $token &

Cumprimentos,
António Afonso



More information about the textmate mailing list