[TxMt] tm_dialog and really long plists

Brett Terpstra brett at circlesixdesign.com
Thu Apr 26 13:12:43 UTC 2007


I had been setting a variable to the open() command, but I think that  
it returns nil, doesn't it?  How do I get the return value from the  
dialog into a variable using this method?  Or is that not the  
problem...?

Thanks,
Brett

On Apr 26, 2007, at 7:46 AM, Chris Thomas wrote:

>
> On Apr 25, 2007, at 10:20 PM, Brett Terpstra wrote:
>
>>>
>>> Yes, pass the plist as stdin instead of via -p, then you also do  
>>> not need to shell escape it.
>>>
>>> So from Ruby, with ‘params’ being a ruby hash:
>>>
>>>    open("|\"$DIALOG\" -t#{token}", "w") { |io| io <<  
>>> params.to_plist }
>>
>> OK.  Making sense so far, but how is the window token defined, and  
>> is it necessary when using a custom nib?
>
> The tokens is returned when you create an async dialog. This being  
> a modal dialog, you don't need one.
>
>>  got back what looked like a perfect xml response but with this at  
>> the end:
>>
>> Received exception:undefined method
>
> What text appears in the Console log when this happens?
>
> Chris
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list