amazingman2000 wrote:
... I ran two separate scripts because I don't know how to combine them into one.
A simple way to combine the two scripts would be adding the if statement to the first script's paths loop.
for( var p = 0; p < numberOfPaths; p++ )
{
if( doc.pathItems[ p ].kind == PathKind.NORMALPATH && newPathName != doc.pathItems[ p ].name ) doc.pathItems[ p ].name = newPathName;
if( doc.pathItems[ p ].kind == PathKind.CLIPPINGPATH && newPathName != doc.pathItems[ p ].name ) doc.pathItems[ p ].name = newPathName;
}