Article View: adobe.scripting.indesign
Article #8378Re: JS: everyItem()
From: Olav_Kvern
Date: Mon, 16 Oct 2006 16:01
Date: Mon, 16 Oct 2006 16:01
9 lines
1094 bytes
1094 bytes
Hi Steve-- In VBScript, you'll need to iterate through the returned Objects collection. When you work with ItemByRange with text, you'll get an Objects collection containing a single item, so you can avoid iteration by setting the properties of that item. For other objects, you'll get multiple objects. VBScript doesn't have the capability of applying a value to a property of multiple objects at once. Adding ItemByRange was about as close as we could get! Thanks, Ole
Technical Details
Message-ID:
<3bc1f85d.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!news.stben.net!webcrossingReferences:
<3bc1f85d.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,b463f739f5a1a327 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Olav_Kvern@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: JS: everyItem() Message-ID: <3bc1f85d.2@webcrossing.la2eafNXanI> Date: Mon, 16 Oct 2006 09:01:08 -0700 References: <3bc1f85d.-1@webcrossing.la2eafNXanI> Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!news.stben.net!webcrossing