🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15873

Re: Links missing in CS

#15873
From: Mike_Mepham
Date: Tue, 11 Nov 2003 01:38
30 lines
1656 bytes
Thanks for that Ole, but yes, problems with both text and graphics. The following snippet has been working with ID2 documents every day for the past year, but now falls over on the relink line with an "Object type not supported, etc" error.

Set myLinks = myDocument.Links
For n = 1 To myLinks.Count
    Set gkLinkItem = myLinks.Item(n)
    ' List1 is a VB list box that is currently displaying all linked files
    ' Those to be relinked and updated are selected in the usual way...
    For m = 0 To List1.ListCount - 1
        If List1.Selected(m) And List1.List(m) = myLinkItem.Name Then

		' routine at this position to
		' create new filename "FPath" (based on myLinkItem.Name)
		' that already exists at FPath

myLinkItem.Relink FPath
        End If
    Next m
Next n

Set myLinks = myDocument.Links
For n = myLinks.Count To 1 Step -1
    Set myLinkItem = myLinks.Item(n)
    myLinkItem.Update
Next n

Can't see what I'm doing wrong here. Any ideas?

Thanks,

Mike
Technical Details
Message-ID: <2cce4aa4.3@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2cce4aa4.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,f1e9d0a198c97086
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-10 18:07:43 PST
From: Mike_Mepham@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Links missing in CS
Message-ID: <2cce4aa4.3@webx.la2eafNXanI>
Date: Mon, 10 Nov 2003 17:38:49 -0800
References: <2cce4aa4.-1@webx.la2eafNXanI>
Lines: 35
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit