Article View: adobe.scripting.indesign
Article #19098Scripts that fail from Palette
From: Dave Saunders
Date: Fri, 17 Jan 2003 15:49
Date: Fri, 17 Jan 2003 15:49
14 lines
1552 bytes
1552 bytes
I'm having desperate trouble trying to get certain scripts to run properly from the palette. The common thread seems to be that if I try to adjust the size of a text frame it will work from Script Debugger but not from the palette. I've narrowed it down to this snippet: set myCapBounds to geometric bounds of myCapFrame set myBottom to baseline of character -1 of myCapFrame set item 3 of myCapBounds to myBottom + 0.667 set geometric bounds of myCapFrame to myCapBounds That last command is not succeeding when run from the palette but works fine in Script Debugger. I was at first using visible bounds but switched to geometric to see if it made a difference -- it didn't. I guess that I can insert returns to narrow it down further. Dave
Technical Details
Message-ID:
<1de76d0e.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.mountaincable.net!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!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,50cdc56b84d3d053 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-01-17 08:08:20 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-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.mountaincable.net!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Scripts that fail from Palette Message-ID: <1de76d0e.-1@WebX.la2eafNXanI> Date: Fri, 17 Jan 2003 07:49:53 -0800 Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit