Importing multiple object files in Maya-mel script

Hi ,

I'm trying to import 1500 odd object files from XSI to Maya..so that I can do a blend shape and recreate the animation....I'm using a linux machine so I can't do a shift select...So im trying to write a mel script that will do that...I'm fairly new to maya and I'm get an error on this script..hope someone can help me

int $i;
for($i=1;$i<=1500;$i++)
file -import -type "OBJ" -namespace "oo" -options "mo=1" -pr "/masters/srajendran/test/oo." &$i& ".obj";

my files name is oo.1.obj etc....I get an error in line 3..Hope someone can help me out..My projects due in 3 days so im really desperate!!
sanjana

just out of curiosity why even bother to create the blendshape?

I'm trying to import animation from XSI to maya..and fbx doesnt work coz one of our characters has a tail rig which gets screwed up...my prof suggested this alternative method..where u export every frame of animation from xsi to maya as a obj file and do a blend shape of each body part and key frame the first and last key to play back the animation...hope that answers ur question

try this
int $i;
for($i=1;$i<=1500;$i++)
{
//String concatenation uses +
$name="/masters/srajendran/test/oo." + $i + ".obj";
file -import -type "OBJ" -namespace "oo" -options "mo=1" -pr $name;
}