Copy link to clipboard
Copied
I'm lost again, or perhaps I've forgotten.
Like this:
var enObjWidth = app.documents[0].objectStyleGroups.itemByName(AA).itemByName(a1).transformAttributeOptions.transformAttrWidth;
Copy link to clipboard
Copied
I've found the answer to this.
Thanks.
var reObjWidth = app.documents[0].objectStyleGroups.itemByName(AA).
objectStyles.itemByName(a1).transformAttributeOptions.transformAttrWidth;
Copy link to clipboard
Copied
You should quote "AA" and "a1". Otherwise you must have those variables existing, eg. var AA = "AA", a1 = "a1";
Copy link to clipboard
Copied
I just feel that the execution efficiency below is a bit low:
app.documents[0].objectStyleGroups.itemByName(“AA”).objectStyles.itemByName(“a1”)
No other issues were found.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now