Help with Script to Rename Selected Paths, not Layers
Hi,
I have a need to rename selected paths with script. Specifically, I have a path (named or without name) that I need to rename adding the suffix "+score" to the end. So, if it is named "object", the script would rename it to "object+score". I want to be able to select the objects I need to rename and then run the script to only changed the selected objects/paths.
After reading a bunch of past posts, I have been trying for hours without success. This was similar to a sample script I tried and not error, but nothing happens. Any help would be appreciated.
#target Illustrator
var doc = activeDocument;
var sel = doc.selection;
var suffix="+score";
for (var i=0; i < sel.length; i++)
sel.name = sel.name + suffix;I am not a scripter. I just piece together scripts until I can get them to work for me. Thanks in advance!
