[TxMt] tm_dialog and really long plists
Brett Terpstra
brett at circlesixdesign.com
Thu Apr 26 20:05:03 UTC 2007
Thanks for the help. Is there any reason to use popen over popen3?
Is it just that I don't need popen3 because I'm not using stderr for
anything?
On Apr 26, 2007, at 2:43 PM, Allan Odgaard wrote:
> On 26. Apr 2007, at 21:31, Brett Terpstra wrote:
>
>> Got it! Just have to define res=[] before going into it so that
>> res is available outside of the block. Works perfectly, thanks!
>
> For popen3 you can also do:
>
> res = Open3.popen3('"$DIALOG" -m select_photoset') do |stdin,
> stdout, stderr|
> stdin << plist; stdin.close
> PropertyList::load(stdout)
> end
>
>
> ______________________________________________________________________
> 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