Article View: adobe.scripting.indesign
Article #192Re: Using for ... in with arrays
From: Fred_Goldman
Date: Tue, 31 Mar 2009 16:39
Date: Tue, 31 Mar 2009 16:39
7 lines
1027 bytes
1027 bytes
But why doesn't something like this work? Isn't myDoc.characterStyles an array? myDoc = app.activeDocument; for (j in myDoc.characterStyles) alert(myDoc.characterStyles[j].name)
Technical Details
Message-ID:
<B898132F3AB3960003A8A55112DA8920@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossingReferences:
<59b87616.-1@webcrossing.la2eafNXanI> <59b87616.2@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,709551d954315a95 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Fred_Goldman@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Using for ... in with arrays Message-ID: <B898132F3AB3960003A8A55112DA8920@in.webcrossing.la2eafNXanI> Date: Tue, 31 Mar 2009 09:39:18 -0700 References: <59b87616.-1@webcrossing.la2eafNXanI> <59b87616.2@webcrossing.la2eafNXanI> Lines: 7 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) X-Antivirus: avast! (VPS 090330-0, 03/30/2009), Outbound message X-Antivirus-Status: Clean MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit