Article View: adobe.scripting.indesign
Article #18033Re: Problem with compiled script
From: Dave Saunders
Date: Tue, 06 May 2003 16:40
Date: Tue, 06 May 2003 16:40
29 lines
1674 bytes
1674 bytes
It depends on whether or not the frame in question is eligible for the command. To eliminate the error, you could do: try fit given frame to content end try This will eliminate the error and work on any eligible frames while leaving the others unchanged. Does that do it for you? Or do you need to make those ineligible frames fit? If so, then you either need to roll your own break out that frame from its story, along the lines of: tell mySectionTitleLevel2Frame if count of frames of parent story of it >1 then set myNewFrame to duplicate delete characters 1 through -1 of it delete it else fit given frame to content end if end tell try -- in case 'myNewFrame' doesn't exist or is wrong type tell myNewFrame fit given frame to content end tell set myNewFrame to 0 end try But you've now broken the frame out of its group, if it were in a group. Dave
Technical Details
Message-ID:
<1de8f1c5.4@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de8f1c5.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,7f68682032039179 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-06 10:08:21 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-06!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Problem with compiled script Message-ID: <1de8f1c5.4@WebX.la2eafNXanI> Date: Tue, 6 May 2003 09:40:29 -0700 References: <1de8f1c5.-1@WebX.la2eafNXanI> Lines: 34 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit