🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8864

Re: CS1 file path of missing link

#8864
From: Peter_Kahrel
Date: Thu, 21 Sep 2006 21:25
17 lines
1582 bytes
The path names of missing links are accessible in CS1 (3.0.1.838). This works: take a file, place a couple of graphics, save file. Change the name of the graphic files on disk, reload the document. ID shows dialog with message about missing links, asking if the links should be updated (or graphics relinked). Say 'No'. The following script displays the names of all graphics with missing links:



var message = �� 
var pics = app.activeDocument.allGraphics 
for( var i = 0; i < pics.length; i++ ) 
   if( pics[i].itemLink.status == LinkStatus.linkMissing ) 
      message += pics[i].itemLink.filePath + � cannot be found.\r� 
if( message != �� ) 
   alert( message )



So the file path is available. If you apply the same replacement to the file name here as you did to the name on disk, you can simply update the links.

Peter
Technical Details
Message-ID: <3bc132da.9@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.isoc.lu!webcrossing
References: <3bc132da.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,7cab678820bb9760
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII
From: Peter_Kahrel@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: CS1 file path of missing link
Message-ID: <3bc132da.9@webcrossing.la2eafNXanI>
Date: Thu, 21 Sep 2006 14:25:34 -0700
References: <3bc132da.-1@webcrossing.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit