Got it! Just have to define res=[] before going into it so that res is available outside of the block. Works perfectly, thanks!
Brett
On Apr 26, 2007, at 2:05 PM, Allan Odgaard wrote:
require "open3" Open3.popen3('"$DIALOG" -m select_photoset') do |stdin, stdout,
stderr| stdin << plist; stdin.close res = PropertyList::load(stdout) end