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@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate