Article View: adobe.scripting.indesign
Article #1882[CS3 JS] Getting a page item by its script label
From: Rick_Quatro
Date: Wed, 21 Jan 2009 14:20
Date: Wed, 21 Jan 2009 14:20
15 lines
948 bytes
948 bytes
I have a text frame on a master page with its script label set. In my script, I am trying to get a reference to the text frame with this:
var doc = app.activeDocument;
var spread = doc.masterSpreads[0];
var tabFrame = spread.allPageItems.item("TabLeft");
I get the error "spread.allPageItems.item is not a function"
Any help will be appreciated. Thanks.
Rick
Technical Details
Message-ID:
<59b792a7.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,6e0cc7956bc06b86,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Rick_Quatro@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [CS3 JS] Getting a page item by its script label Message-ID: <59b792a7.-1@webcrossing.la2eafNXanI> Date: Wed, 21 Jan 2009 06:20:43 -0800 Lines: 12 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit