Skip to main content
Aprking
Inspiring
February 14, 2025
Answered

how can I use a script to add a comment to an XML object in the Structure?

  • February 14, 2025
  • 1 reply
  • 478 views

Hello everyone!

In InDesign, how can I use a script to add a comment to an XML object in the Structure, and how can I retrieve the comment content of an XML object?
Thank you all!

Correct answer Aprking

I have successfully added
element.xmlComments.add(comment);
and retrieved
element.xmlComments.value;
I apologize for taking up community resources, and I appreciate everyone's help.

1 reply

Aprking
AprkingAuthorCorrect answer
Inspiring
February 14, 2025

I have successfully added
element.xmlComments.add(comment);
and retrieved
element.xmlComments.value;
I apologize for taking up community resources, and I appreciate everyone's help.