[TxMt] tm_dialog and really long plists
Allan Odgaard
throw-away-1 at macromates.com
Thu Apr 26 19:27:41 UTC 2007
On 26. Apr 2007, at 21:13, James Edward Gray II wrote:
>> When you want to both send and receive stdin/out to/from a
>> command, you need to use popen3.
> Is that true? I thought that's only if we needed stderr too.
>> For example like this (untested):
>> [...]
> What's wrong with:
>
> IO.popen('"$DIALOG" -m select_photoset') do |dialog|
> dialog << plist
> dialog.close_write
> res = PropertyList::load(dialog)
> end
>
> ?
Oh yeah, that should work -- just the stdlib popen doesn’t do
bidirectional pipes, but the Ruby one of course does not suffer from
that :)
More information about the textmate
mailing list