Article View: adobe.scripting.indesign
Article #19295How to select an inline graphic?
From: ann ziegler
Date: Fri, 20 Dec 2002 01:10
Date: Fri, 20 Dec 2002 01:10
9 lines
1793 bytes
1793 bytes
Can anyone give me hints on how to select an inline graphic? I'm not having much success. I've got documents full of them and they all need to be resized 50%. I can select TextFrames, Rectangles and Images, but not graphics placed inline in TextFrames. Using Example script #4 on p.292 (pdf p.301) of idsnscripting.pdf modified with separate case choices for text selection items and also rectangles and images, and with default "else" set to "other", it appears that a selected inline graphic is a "rectangle", and it's graphic an "image". But if I use a selection script like the SelectObjects one available via Adobe Studio Exchange to select all rectangles or images, the inline graphic doesn't get selected. Surfing the Forums, I'm finding examples of placing inline graphics, but not selecting ones that already exist. Part of my problem I'm sure is not understanding too well how each objects' properties work, like why I can't point to the inline graphic like (roughly) 'myDocument.PageItem.TextFrame.Inline.ContentType = idGraphic'. I'd be grateful for some tips! (P.s. I'm also a VB newbie...)
Technical Details
Message-ID:
<1de7147f.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,4f7436ee13c8fd53 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-12-19 17:38:03 PST From: "ann ziegler" <aziegler@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: How to select an inline graphic? Message-ID: <1de7147f.-1@WebX.la2eafNXanI> Date: Thu, 19 Dec 2002 17:10:43 -0800 Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit