I am trying to find a layer by name and loop through the selections.
function projectItem(name)
{
var items = app.project.items;
i = 1;
while (i <= items.length) {
if (items[i].name == name)
{
return app.project.item(i);
break;
}
i++;
}
}
This works right?