adam beazley wrote:

>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
>
>  
>

img = Dir['*.jpg'] sets img to an array of the image names.  the p in the next piece of code just means "do something."  That code iterates through the array of image names.  instead of p img, you could say print img, etc.