🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19057

Re: Find/Replace text with eps files

#19057
From: Dave Saunders
Date: Tue, 21 Jan 2003 18:23
34 lines
2177 bytes
It certainly is possible.

Parse the text and work out the path to the graphic and then use the Place command.

Or, make a template of the look you want (I wanted my graphics to be in a particular style of frame with a particular shadow) and put that in a library file. Place that from the library and then update the link to graphic.

This may involve you in some resizing, so the procedure I use is:

1. Place the library asset on the document as a free-standing graphic

select nothing
place asset 1 of library myLib whose name is "graphic template" on document 1
set myGraphic to item 1 of selection

2. Update the link. Assumes that the file path to your graphic is already in myFile as a string:

set myLink to link item of page item 1 of myGraphic
tell myLink to relink to file myFile

3, resize the graphic frame to accommodate the new linked graphic

tell myGraphic to fit using frame to content

4. transfer the graphic inline using the library (saves messing around with cut and paste). Requires that myStory be a reference to the story in question with myIndex containing the index of the insertion point:

set myAsset to store myGraphic into library myLib
delete myGraphic
select insertion point myIndex of myStory
place myAsset on document 1
delete myAsset

Thar she blows!

Dave
Technical Details
Message-ID: <1de77b23.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!solnet.ch!solnet.ch!news.imp.ch!news.imp.ch!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de77b23.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,749a52170ba4267
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-21 10:39:34 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!solnet.ch!solnet.ch!news.imp.ch!news.imp.ch!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Find/Replace text with eps files
Message-ID: <1de77b23.0@WebX.la2eafNXanI>
Date: Tue, 21 Jan 2003 10:23:26 -0800
References: <1de77b23.-1@WebX.la2eafNXanI>
Lines: 42
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit