🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14633

Re: [AS] How to place inline graphic and scale it?

#14633
From: Dave_Saunders
Date: Mon, 26 Jan 2004 12:33
13 lines
1234 bytes
Oh wait, I missed the fact that this is an inline graphic.

The place command doesn't return anything when you place an inline. So, your Fit command has nothing to work on.

That's why Magnus's method works. You have to get a reference to the frame from the insertion point, along these lines:

place ....
set myStory to parent story of insertion point
set myIndex to index of insertion point -- now immediately after graphic
set myFrame to page item 1 of character (myIndex -1) of myStory
fit myFrame given ...

Dave
Technical Details
Message-ID: <2ccf93cc.2@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!easynet-monga!easynet.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf93cc.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,631dce772f62c487
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-26 04:37:45 PST
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!easynet-monga!easynet.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] How to place inline graphic and scale it?
Message-ID: <2ccf93cc.2@webx.la2eafNXanI>
Date: Mon, 26 Jan 2004 04:33:45 -0800
References: <2ccf93cc.-1@webx.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit