Hello,
I wrote a program to rename files in a user-defined
directory. The program lets you choose the directory,
type in some "Entries" the strings to replace and the
related strings to replace with.
Then when I click the "Start" button the program perform
the replacements.
This is my first program in Ruby and I am trying to improve
it (e.g make it faster & well coded) do you have any suggestions?
Especially
1) the "Select Directory" FileChooserDialog does not quit when I click
on the "Cancel" Button and it quits only the 2nd time I ckick the "X"
button on the top of the window.
2) is there a way to fill up faster the hash with the strings to
replace?
(e.g. a loop)
I hope you understand my english :)
Thank you, Giovanni
Attachments:
<a href="http://www.ruby-forum.com/attachment/5904/giovis_rename.txt" title="http://www.ruby-forum.com/attachment/5904/giovis_rename.txt">http://www.ruby-forum.com/attachment/5904/giovis_rename.txt</a>
<a href="http://www.ruby-forum.com/attachment/5905/giovis_rename_Screenshot.png" title="http://www.ruby-forum.com/attachment/5905/giovis_rename_Screenshot.png">http://www.ruby-forum.com/attachment/5905/giovis_rename_Screenshot.png</a>