Select all items with object style "red" and change to style "blue"
Hello!
I want to select all items with object style "shadow 02" and apply object style "shadow 02".
Is that possible?
Thank you!
Hello!
I want to select all items with object style "shadow 02" and apply object style "shadow 02".
Is that possible?
Thank you!
Hi,
Of course! … A simplistic code could be:
app.findObjectPreferences = app.changeObjectPreferences = null;
app.findObjectPreferences.appliedObjectStyles = app.activeDocument.objectStyles.item("red");
app.changeObjectPreferences.appliedObjectStyles = app.activeDocument.objectStyles.item("blue");
app.activeDocument.changeObject();
app.findObjectPreferences = app.changeObjectPreferences = null;
Best,
Michel, from FRIdNGE
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.