🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15171

Re: [VB] Converting an InLine image to Placed Image

#15171
From: Perrin_Kliot
Date: Fri, 19 Dec 2003 23:18
18 lines
1682 bytes
Raymomd

Is sounds like we are working on a similar project, I have a catalog script that Ole wrote that generates a document with inline pictures. I have another script that I run using a hot key. I select the inline graphic and the script cuts and then pastes the graphic in the same place and applies text wrapping. I don't do this automatically because I have to manipulate the size and placement of each picture slightly. The script goes something like:

myBounds = mySelection.GeometricBounds
myY1 = myBounds(0)
myX1 = myBounds(1)
myY2 = myBounds(2)
myX2 = myBounds(3)
myOfset = 0.1
myIndesign.cut()
myIndesign.paste()
Set mySelection = MyDocument.Selection.Item(1)
mySelection.GeometricBounds = array(myY1, myX1, MyY2, MyX2)
mySelection.textWrapPreferences.textWrapType = idTextWrapTypes.idBoundingBoxTextWrap	
mySelection.textWrapPreferences.textWrapOffset = array(myOfset, myOfset, myOfset, myOfset)

I'm new to ID scripting so I can't tell you how to automate the script but it shouldn't be to difficult to do.
Technical Details
Message-ID: <2ccef986.1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccef986.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,9cb81921c4722226
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-19 15:37:58 PST
From: Perrin_Kliot@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Converting an InLine image to Placed Image
Message-ID: <2ccef986.1@webx.la2eafNXanI>
Date: Fri, 19 Dec 2003 15:18:07 -0800
References: <2ccef986.-1@webx.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit