At a quick glance it looks like you're missing a ` at the end of this line
string $grabEnd[] = `sl -sl -tl l;
before the ;
Don't have maya open atm but that looks like it.
Welcome to SM
Dave
From a readers' Q and A column in TV GUIDE: "If we get involved in a nuclear war, would the electromagnetic pulses from exploding bombs damage my videotapes?"