[TxMt] Re: TM hangs while waiting for tm_dialog2

Hans-Jörg Bibiko bibiko at eva.mpg.de
Mon Jan 26 21:02:24 UTC 2009


On 26.01.2009, at 21:45, António Afonso wrote:
> On Mon, Jan 26, 2009 at 21:31, Hans-Jörg Bibiko <bibiko at eva.mpg.de>  
> wrote:
>>
>> try:
>> ruby ~/Desktop/bundle.rb &>/dev/null
> Same behavior
>>
>> 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

Yes. À la
ruby <<SCRIPT &>/dev/null
...
SCRIPT

but wait. You're using "$DIALOG" nib --load. The corrected --load  
(together with --dispose) command was introduced after TM build 1496.  
Thus, did you compiled DIALOG2 by yourself?

Type in an empty line:
"$DIALOG" help window

and press CTRL+R. Do you see

window usage:
"$DIALOG" window --load «nib» [«options»]
"$DIALOG" window --update «token» [«options»]
"$DIALOG" window --wait «token»
"$DIALOG" window --close «token»
"$DIALOG" window --list

if so please try --open instead of --load. The best would be to  
download the Dialog2 stuff (svn co http://svn.textmate.org/trunk/Tools/Dialog/) 
  and compile it again and execute ' "$DIALOG" help window' to see the  
commands.


--Hans




More information about the textmate mailing list