🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2240

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

#2240
From: Martin Fischer
Date: Wed, 07 Jan 2009 08:38
24 lines
1164 bytes
Hi Charles,

it's in German.
And the comments are in german language too.
But the code of the scripts is international.

You will have to find out whether the name of a link contains '_web.eps'.

 
if (myLinks[i].name.match('_web.eps') != null) 
... 


Then you will have to change the old part of the name with a new part:

 
var newName = myLinks[i].name.replace('_web.eps', '_print.eps'); 


And now you will have to try to relink the link with a file with the new name.

The scripts above should tell you the way to do this.

Martin
Technical Details
Message-ID: <59b771d1.4@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!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: "Martin Fischer" <Martin.Fischer@online.de>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [CS2][JS]Relink images for web and print
Message-ID: <59b771d1.4@webcrossing.la2eafNXanI>
Date: Wed, 7 Jan 2009 00:38:59 -0800
References: <59b771d1.-1@webcrossing.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit