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

Relink images

Explorer ,
Mar 04, 2011 Mar 04, 2011

Copy link to clipboard

Copied

Hi,

There are several images placed in my documents which name have been changed. Only an extension .eps added in all images name.

Anyone know how to relink images with new name.

Thanks,

Mon

TOPICS
Scripting

Views

422

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 ,
Mar 07, 2011 Mar 07, 2011

Copy link to clipboard

Copied

LATEST

I don't know how to Relink images. But I know how to get fullpath of placing images, and how to place Images in rectangles.

We can collect Images filepath,

app.activeDocument.rectangles[0].epss[0].properties.itemLink.filePath

If you only change filenames extension, you can replace the EPS images, and other properties can keep before replace Images.

for (var i=0;i<app.activeDocument.rectangles.length;i++) {
    if (app.activeDocument.rectangles.epss.length>0){
        var n = app.activeDocument.rectangles.epss[0].properties.itemLink.filePath;
        var f = File (n);
        app.activeDocument.rectangles.place(f);
        }
    }

Though it only has to be useful...

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