πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16901

Fitting an image to a frame

#16901
From: John Darnell
Date: Wed, 16 Jul 2003 20:29
22 lines
1373 bytes
FοΏ½ilte Fellow Scripters:

I have a frame with a content type of "graphic." I am placing a .JPG picture into the frame; I need to center that picture within the frame.

The documentation says to use "fit" with the "Value type" described as "given as content to frame, frame to content, center content, proportionally."

I am trying to center the image. I have code that looks like this:

tell last rectangle
   place "some file"
   fit center content
end tell

I get an error saying that "some parammeter wasn't understood."

I removed the "fit" word, and the script ran, but the image being placed did not center.

What does this command look like when it is used?

TIA,

John
Technical Details
Message-ID: <1de9f2d7.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,b677234a203c917f,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-16 13:40:01 PST
From: "John Darnell" <John.Darnell@Walsworth.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Fitting an image to a frame
Message-ID: <1de9f2d7.-1@WebX.la2eafNXanI>
Date: Wed, 16 Jul 2003 13:29:54 -0700
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit