Asked • 06/04/19

add property to object?

With Indesign scripting, why can't I add properties to an object? I get an error > Object does not support the property or method 'foo' items = b.items(b.layer("s_labels")); for (var i = 0; i < items.length; i++) { items[i].fit(FitOptions.frameToContent); items[i].foo = "bar"; // other attempt items[i]["foo"] = "bar"; }

1 Expert Answer


Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.