🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17869

Re: Ignorant greenhorn seeks charity script

#17869
From: Stu Bloom
Date: Sat, 10 May 2003 16:30
24 lines
1711 bytes
This may not have all the bells and whistles, but it should at least get you started.

It doesn't require setting any folder names, since the InDesign link info includes the full path to the file. It skips any missing, out-of-date, or already-embedded links. The Unlink method of the Link object automatically embeds the referenced file.


Private Sub Command1_Click()
    Dim objID As InDesign.Application
    Dim objDoc As InDesign.Document
    Dim objImage As InDesign.Image
    Dim objRectangle As InDesign.Rectangle

Set objID = CreateObject("InDesign.Application")
    Set objDoc = objID.ActiveDocument

For Each objRectangle In objDoc.Rectangles
        If objRectangle.ContentType = idGraphic Then
            Set objImage = objRectangle.Images(1)
            If objImage.Link.Status = idLinkNormal Then
                objImage.Link.Unlink
            End If
        End If
    Next objRectangle

End Sub
Technical Details
Message-ID: <1de91143.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de91143.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,5bf68636565030c0
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-10 09:37:29 PST
From: "Stu Bloom" <stu@earlvillepost.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Ignorant greenhorn seeks charity script
Message-ID: <1de91143.1@WebX.la2eafNXanI>
Date: Sat, 10 May 2003 09:30:01 -0700
References: <1de91143.-1@WebX.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit