• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Extendscript: how to get the Indesign full path name from an InCopy document?

New Here ,
Nov 29, 2016 Nov 29, 2016

Copy link to clipboard

Copied

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?

TOPICS
Scripting

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2016 Nov 29, 2016

Copy link to clipboard

Copied

LATEST

Hi Jack,

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:

Adobe InDesign CS6 (8.0) Object Model JS: Link

Indesign JavaScript Help

I guess nothing was added regarding object Link with newer versions of InDesign.

But see for yourself with DOM documentation compiled by Gregor Fellenz:

InDesign ExtendScript API (12.0)

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…

Regards,
Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines