 | How to check if a property value is readonly using extendscript?
on Aug 2, 2015 at 12:26:32 pm Last Edited By Eskeletor de Mendoza on Aug 2, 2015 at 12:34:07 pm |
I'm writing a script that collects all properties from a layer and write them into an XML file. When I retrieve the values from the XML,
some values are readOnly and the toolkit throws an error.
Is there any way to check it, like readonly attribute on File object?
ie: layer.property().(readonly||readOnly)
If not, someone can tell me wich aproach can I take to go in the right direction?
 | Re: How to check if a property value is readonly using extendscript? on Aug 3, 2015 at 2:40:40 pm |
Whether an attribute is read-only or read/write is
documented [link].
That said, you could use
try/catch [link] to attempt to change the value of a property and recover if it fails.
Walter Soyka
Designer & Mad Scientist at
Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter] |
RenderBreak [blog] |
Profile [LinkedIn] | Re: How to check if a property value is readonly using extendscript? on Aug 19, 2015 at 10:27:56 am |
This is what I was looking for. It Works perfect for me. Thanks!