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