🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14560

[JS] textFrames.item(<string>) working flaky ?

#14560
From: Mark_Volmer
Date: Thu, 22 Jan 2004 11:11
11 lines
1255 bytes
I wonder if anyone could explain the following;

I'm trying to access a textFrame on a masterpage by it's scriptlabel.
The textframe has a scriptlabel 'frmCardN', still, the line below doesn't work:
newPage.appliedMaster.textFrames.item("frmCardN").contents = iNumOfSpeeches;

Strangely enough when I try this:
alert(newPage.appliedMaster.textFrames.item("frmCardN").label);
It returns 'frmCardN' ....

I worked around this by looping through appliedMaster.textFrames, checking each label and then using textFrames.item(<int>) syntax but still it bugs me, anyone have the same experience ?
Technical Details
Message-ID: <2ccf8233.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,add8ced36166d204,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-22 03:37:34 PST
From: Mark_Volmer@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: [JS] textFrames.item(<string>) working flaky ?
Message-ID: <2ccf8233.-1@webx.la2eafNXanI>
Date: Thu, 22 Jan 2004 03:11:43 -0800
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit