[TxMt] Re: Working with "$DIALOG", nib and shell

Allan Odgaard mailinglist at textmate.org
Tue Apr 14 08:47:36 UTC 2009


On 11 Apr 2009, at 04:49, Matthew Richmond wrote:

> [...]
> "$DIALOG" nib --load ~/Desktop/Test2.nib --center --model '{ classPath
> = "foo"; }' --parameters '{}'
>
> That usually opens the .nib window, when i close the window all i get
> is an integer.

The --load argument will load the nib and return a token (integer).

This can then be used with --wait and --dispose.

> Then it usually stops working all together, no matter how many time i
> try and execute the line of code (control - R) nothing happens, i have
> tried what Allan suggests in the post "So either press ⌃D to
> “close” stdin, or give -p '{}' as argument, and things should work
> as expected." And i cant get it to work, if i trash TextMate prefs and
> reinstall, it works for a bit more.

The -p'{}' and ⌃D does not apply in the async mode you are using the  
command.

If you need to trash the TM preferences to make it work again, it  
indicates that they got “corrupted” — what could maybe be the  
reason is that an exception is thrown when loading your nib, and this  
is causing TM to go into a bad state.

Open Utilities → Console to see if there is any output.




More information about the textmate mailing list