🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #754

Re: how to select textframe(any object) by its ID?

#754
From: Harbs
Date: Sun, 01 Mar 2009 22:08
15 lines
1270 bytes
Hmm.

Sounds like you're right in VB.

In JS though, this throws an error on the first line, but alerts the 
object on the second:

try{alert(app.documents[0].allPageItems.item(1))}catch(e){alert(e)}
try{alert(app.documents[0].pageItems.item(1))}catch(e){alert(e)}

Interesting...

-- 
Harbs
http://www.in-tools.com
Technical Details
Message-ID: <6B9BD353E52893C4530B2E8E18AD31EF@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <7653C3FB707C916432CEBCD676A0DF99@in.webcrossing.la2eafNXanI> <A022BAF402B0EFE0E3BA28B9BAAC2C9F@in.webcrossing.la2eafNXanI> <BC2BB236532E33904C1F8B5602F7DF2D@in.webcrossing.la2eafNXanI> <2AB4504BD0FA188C22E095675B01C8C1@in.webcrossing.la2eafNXanI> <9A1C49907D134746E908E3D17AB06B9B@in.webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,dfa63a8c2b836010
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Harbs
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: how to select textframe(any object) by its ID?
Message-ID: <6B9BD353E52893C4530B2E8E18AD31EF@in.webcrossing.la2eafNXanI>
Date: Sun, 1 Mar 2009 14:08:28 -0800
References: <7653C3FB707C916432CEBCD676A0DF99@in.webcrossing.la2eafNXanI> <A022BAF402B0EFE0E3BA28B9BAAC2C9F@in.webcrossing.la2eafNXanI> <BC2BB236532E33904C1F8B5602F7DF2D@in.webcrossing.la2eafNXanI> <2AB4504BD0FA188C22E095675B01C8C1@in.webcrossing.la2eafNXanI> <9A1C49907D134746E908E3D17AB06B9B@in.webcrossing.la2eafNXanI>
Lines: 16
User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit