Answered
Help Searching Layers For Name Script
Can someone help me with a script which will search all layers in Active Documnet for a specific name and if found make that the active Layer or Return an Alert if not found.
Thanks
Ian
Can someone help me with a script which will search all layers in Active Documnet for a specific name and if found make that the active Layer or Return an Alert if not found.
Thanks
Ian
Reading your posting again:
try {
(ref1 = new ActionReference()).putName(stringIDToTypeID('layer'), "Canvas" ); // replace Canvas with your layer name
(desc1 = new ActionDescriptor()).putReference(stringIDToTypeID('null'), ref1)
executeAction(stringIDToTypeID('select'), desc1, DialogModes.NO);
} catch (e) {
alert("Sorry, this layername does not exists");
}Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.