I am using InDesign 2020/2021, on my Windows 10. When I am trying to get XMP data for my .indd (InDesign document) using ExtendScript, The below line gives an error on the Adobe Extenscript toolkit
xmpFile = new XMPFile(myFile.fsName, XMPConst.FILE_INDESIGN, XMPConst.OPEN_FOR_UPDATE);
The is the data I want to write/read from InDesign
Can please someone suggest, how can I read all the XMP data and write it in an XML file