Hi,
can anybody tell me how to use the file selection dialog in a ruby script with the --select-only-directories option?
i tried: folder=Dialog.request_file(:'select‑only‑directories' => "")
next i tried: folder=Dialog.request_folder() after adding to file dialog.rb :
def request_folder(options = Hash.new,&block) # added by PV 13.10.2007 _options = default_hash(options) _options["title"] = options[:title] || "Select Folder" _options["informative-text"] = options[:prompt] || "" _options["text"] = options[:default] || "" _options["select‑only‑directories"] = "" dialog("fileselect", _options,&block) end
On page 140 of Textmate by James Edward Gray II it says: "You may pass any other options supported by CocoaDialog"
thanks, Peter