Assuming you always want the very first CV, it will always be position [0]. So curve1.cv[0]. If you want your script to work on any curve selection, you can store your selection first { // stores current selection string $curve[] = `ls -sl`; // for loop allows script to work on any number of curves at one time for ($i=0;…