🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2136

Error in anchored text frame (CS2)

#2136
From: buhari_masthan
Date: Mon, 05 Jan 2009 12:16
21 lines
1310 bytes
Hi All,

I got an error when I run a script which creates anchored text frame with the following code:

var myLeading = 15.5;
  var myFrameWidth = 192;
  var myY1 = myAnchoredFrame.geometricBounds[0];
  var myX1 = myAnchoredFrame.geometricBounds[1];
  var myY2 = myY1 + myLeading;
  var myX2 = myX1 + myFrameWidth;
  myAnchoredFrame.geometricBounds = [myY1, myX1, myY2, myX2];

The above mentioned code works good in CS3. But shows error in CS2 as follows:

Error string: This value would cause one or more objects to leave the pasteboard
Source: myAnchoredFrame.geometricBounds = [myY1, myX1, myY2, myX2];

Can anyone help me to rectify the error?

Regards,
Masthan
Technical Details
Message-ID: <59b76d88.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,a6651d467c1a95b1,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: buhari_masthan@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Error in anchored text frame (CS2)
Message-ID: <59b76d88.-1@webcrossing.la2eafNXanI>
Date: Mon, 5 Jan 2009 04:16:54 -0800
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit