An InCopy assignment is placed on an Indesign page. After opening the InCopy file, I want to get the full path name of the InDesign document where that InCopy file is placed on. Is that possible using a script? What is the right syntax for getting that path name?
Or is this impossible?
note, that your question was moved to the Adobe InDesign Scripting forum.
I could be wrong, but your question could be a variant of the one where an image is placed on an InDesign document page and you opened the image with PhotoShop and you want to know in what InDesign document(s) the image is placed.
This information can be retrieved, but you have to open all available InDesign documents and check the Link collection. From the Link collection you can get the full name of all placed ICML files and compare their names and paths with your opened file with InCopy.
See also DOM documentation compiled by Jongware:
I guess nothing was added regarding object Link with newer versions of InDesign.
But see for yourself with DOM documentation compiled by Gregor Fellenz:
If you inspect the ICML file you could check the metadata entries.
There you could get the information what version of InDesign created the ICML file. Even the name of the InDesign document is revealed. But that would not be sufficient for you…