Article View: adobe.scripting.indesign
Article #14906Re: [js] Problem with Objects
From: Mike_Oldham
Date: Thu, 08 Jan 2004 20:41
Date: Thu, 08 Jan 2004 20:41
15 lines
1675 bytes
1675 bytes
[quote] which places each new textframe at the end, rather than at the beginning. Is that what you mean? [end quote] That looks like a good workaround, but its not what i mean. When I Assign an object to a variable, I expect that variable to ALWAYS point to that object. No matter how many new objects I add to the Page, and no matter where I put them, I still expect my variable to be pointing to the object. As you said, it does appear that this is how JS works. This could make some of my code tricky, especially when a variable changes when I dont want it to. [quote] (By the way, I would have thought that "var daBounds = new Array(3)" should be "var daBounds = new Array(4)", but it appears to make no difference at all.) [end quote] That was typo, it should have been 4, I guess javascript is just nice sometimes. Thanks for the input, I'll probably use LocationOptions.atEnd unless I can figure out a better solution Mike Oldham
Technical Details
Message-ID:
<2ccf3f6e.1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-05!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf3f6e.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,271beb45701319e6 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-08 13:07:50 PST From: Mike_Oldham@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-05!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [js] Problem with Objects Message-ID: <2ccf3f6e.1@webx.la2eafNXanI> Date: Thu, 8 Jan 2004 12:41:02 -0800 References: <2ccf3f6e.-1@webx.la2eafNXanI> Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit