🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1734

Re: Rename and relink images - Indesign CS4 - OSX10.5

#1734
From: Kasyan_Servetsky
Date: Wed, 28 Jan 2009 15:20
17 lines
1002 bytes


 
var myDoc = app.activeDocument;
var myLinks = myDoc.links;

for (i = myLinks.length-1; i >= 0 ; i--) {
   var myLink = myLinks[i];
   var myFile = new File(myLink.filePath);
   var myNewName = myLink.name.replace("20283", "21483");
   if (myFile.exists) {
      myFile.rename(myNewName);
      myLink.relink(myFile);
      myLink.update();
   }
}
Technical Details
Message-ID: <59b7b57d.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b7b57d.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,9c5b4caa9f6e97a5
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Kasyan_Servetsky@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Rename and relink images - Indesign CS4 - OSX10.5
Message-ID: <59b7b57d.0@webcrossing.la2eafNXanI>
Date: Wed, 28 Jan 2009 07:20:16 -0800
References: <59b7b57d.-1@webcrossing.la2eafNXanI>
Lines: 9
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit