Am Donnerstag, den 29.12.2005, 07:07 +0900 schrieb adam beazley: > Hello, > > I am trying to write my first ruby script to be used with Sketchup. > Basically it is the first part of the script that I am having a problem > with. So here is what i am trying to do: > 1: person imputs the directory path---ie c://program.../yada/ > 2: ruby reads all image files in that directory and stores the file > names in a string to be used later on. > Hi, img = Dir['*.jpg'] returns all jpg-images in the current working directory as an array. So you can iterate over it like: img.each do |img| p img end Cheers detlef > > So I basically what the script to go into a directory and list all of > the file names. Then I can use those file names to feed into the rest of > my script. > > any help would be appreciated, > thanks, > Adam >