🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8281

Re: Get the widest word in a story? VB, CS1

#8281
From: Dave_Saunders
Date: Sat, 21 Oct 2006 23:02
7 lines
932 bytes
Either of those actions could actually change the widest word because they could affect the spacing. Perhaps getting the longest word is better because it is surely faster. Does this work in VB:

myLengths = myStory.words.itemByRange(0,-1).length

Because if so, that'll give you the lengths in an array.

Dave
Technical Details
Message-ID: <3bc20295.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc20295.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,22533d59e2f54e83
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Get the widest word in a story? VB, CS1
Message-ID: <3bc20295.1@webcrossing.la2eafNXanI>
Date: Sat, 21 Oct 2006 16:02:39 -0700
References: <3bc20295.-1@webcrossing.la2eafNXanI>
Lines: 9
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!news4.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing