🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2309

Re: [CS3, JS] Stuck on DropDownList again

#2309
From: Eric
Date: Tue, 23 Dec 2008 17:12
19 lines
1314 bytes
Hi Peter,

Thanks for your help!

Yes, I actually started out initially in "purist mode". Apparently, I fell off the tracks due to wanting to add all the items at once via something like:

w.master.l.stringList = masterSpreads.everyItem().name

As near as I can tell (now), that's just not possible. When I use "items" rather than "stringList", I get back a read-only error. Which is a step up from a broken dialog box at least, but still--argh.

This loop works at least, though, so I am back on track.

for( i=0; i < masterSpreads.count(); ++i ) { 
    win.master.l.add( 'item', masterSpreads[i].name ); 
}



Thanks again for taking the time to write all that all up. Very useful info!
Technical Details
Message-ID: <59b75633.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing
References: <59b75633.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,1e62effa5417a1dc
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Eric_@_MCA@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [CS3, JS] Stuck on DropDownList again
Message-ID: <59b75633.1@webcrossing.la2eafNXanI>
Date: Tue, 23 Dec 2008 09:12:40 -0800
References: <59b75633.-1@webcrossing.la2eafNXanI>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit