Charilaos Skiadas <skiadas@...> writes:
#!/usr/bin/env ruby require ENV["TM_SUPPORT_PATH"] + "/lib/dialog.rb" str = "hi there" newstr = Dialog.request_string(:title => "Change me!", :prompt => "Please change me:", :default => str) if newstr.nil? print "You pressed Cancel!" else print "Here's the new string: #{newstr}" end
Amazing (and so simple). Thanks Haris!
Piero