Hi Scripters, I know from Russ Ward's samples how to delete an attribute value. But how do I delete the attribute itself from the element? The attribute is undefined in the document's EDD, that is, it shows as red in the structure view. FrameScript has a command for deleting an "undefined" attribute from an element, but I don't see a way to do this in ExtendScript. Any help will be appreciated. -Rick
I see that the FDK has an F_ApiDeleteUndefinedAttribute() function, but I don't see an equivalent in ExtendScript.
Apologies for the delay in response... I was on vacation for a while. I do see an equivalent ES method and it works OK for me, for example:
doc.DeleteUndefinedAttribute ("UndefinedAttrName", Constants.FV_Element, elem);
...where elem is the element object. Did you try this?
I have reported a documentation bug as the doc.DeleteUndefinedAttribute has a Syntax heading but no detail in the scripting guide for 2015.
Yes, just to clarify, I did not find this in the manual. The ESTK autocomplete feature showed it as an available method.