thanks for your reply, I believe i understand, however I dont know how 
to make C:\Program Files\@Last Software\SketchUp 5\Materials the current 
directory in the program. Or how to make an option where the user can 
type in, or browse to their own directory.

But on the string answer of your question:
img.each do |img|
 p img
end

Does that mean that p will be a variable that will hold all the image 
names?

thanks

-- 
Posted via http://www.ruby-forum.com/.