Article View: adobe.scripting.indesign
Article #15531Re: Undefined Object Blues
From: Dave_Saunders
Date: Sun, 23 Nov 2003 22:38
Date: Sun, 23 Nov 2003 22:38
13 lines
1238 bytes
1238 bytes
What am I missing? I selected a group and did this in the debugger's console:
myTempGroup = app.selection[0] Result: [object Group]
myTempGroup.label Result: Cloneless-1
myTempGroup.textFrames Result: [object TextFrames]
myTempGroup.textFrames.item('FormatsFrame') Result: [object TextFrame]
myTempGroup.textFrames.item('FormatsFrame').label Result: Object is invalid
Huh? How can the result not be FormatsFrame? Didn't I just pick it out by its label?
Son of a ... I can't get at any of the properties of the text frame. I get object is invalid every time. What's going on here?
Dave
Technical Details
Message-ID:
<2cce8972.3@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cce8972.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,5572ac4b7c018113 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-23 15:07:59 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Undefined Object Blues Message-ID: <2cce8972.3@webx.la2eafNXanI> Date: Sun, 23 Nov 2003 14:38:51 -0800 References: <2cce8972.-1@webx.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit