[TxMt] tm_dialog fileselect --select-only-directories

Peter Vogel vogelpeter at t-online.de
Sun Oct 14 22:02:41 UTC 2007


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

-- 
View this message in context: http://www.nabble.com/tm_dialog-fileselect---select-only-directories-tf4617968.html#a13188604
Sent from the textmate users mailing list archive at Nabble.com.




More information about the textmate mailing list