Hey kBrown, Thanks for the assist, but a wierd thing is happening. When I created a script with that text called myworks02.mel, I get an error message // Error: Cannot find procedure "myworks02". // If I remove that text and go back to the simple command I had before that did nothing, it finds the script but of course doesn't work. I'm guessing it's a bogus error message meaning something else is wrong. As I try to dissect and understand your MEL, might there be an error in the "for" condition? Doesn't it set $i to 0 every time? should it for $i ==0? Also, $i is defined as an integer, but with no value. Does that automatically make it's value 0? Thanks again, -dann