🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2238

Re: [CS2][JS]Relink images for web and print

#2238
From: loic_aigon
Date: Wed, 07 Jan 2009 08:24
13 lines
977 bytes
var doc = app.activeDocument;
var lk = doc.links;
try{
for(i=0; i<lk.length;i++) { 	lkname =lk[i].name; 	if(lkname.indexOf("_print.eps")>=0)
	{
		var lkname0 = lkname.split("_print.eps")[0];
		lkfolder = File(lk[i].filePath).parent;
		lk[i].relink(File(lkfolder+"/"+lkname0+"_web.eps"));
		lk[i].update();
	}
}
}
catch(e){}
Technical Details
Message-ID: <59b771d1.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!news2!feeder.erje.net!news4us.nl!webcrossing
References: <59b771d1.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c83165d1b590d57
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: loic_aigon <loic_aigon@yahoo.fr>
Newsgroups: adobe.scripting.indesign
Subject: Re: [CS2][JS]Relink images for web and print
Message-ID: <59b771d1.2@webcrossing.la2eafNXanI>
Date: Wed, 7 Jan 2009 00:24:50 -0800
References: <59b771d1.-1@webcrossing.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!news2!feeder.erje.net!news4us.nl!webcrossing