From: Logan Capaldo Date: 2005-11-17T14:30:53+09:00 Subject: Re: RubyCocoa question --Apple-Mail-1--720576998 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Nov 16, 2005, at 5:39 PM, Ezra Zygmuntowicz wrote: > Hey list- > > Does anyone have an example of using rubycocoa to create a simple > app that can display a file open dialog or sheet and then return a > stirng of the file path to ruby so I can do some text processing on > it? I would really appreciate some pointers. I couldn't find > anything that deals with files in the sample programs. > > Thanks- > > -Ezra Zygmuntowicz > Yakima Herald-Republic See the NSOpenPanel documentation. I haven't used RubyCocoa much but I would imagine it would look like require 'osx/cocoa' opanel = OSX::NSOpenPanel.openPanel opanel.runModalForDirectory_file_types_(nil, nil, nil) results = opanel.URLs --Apple-Mail-1--720576998--