🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19712

How to remove multiple occurrences from a list? [AS]

#19712
From: Richard R�nnb�ck
Date: Mon, 25 Nov 2002 17:44
28 lines
1663 bytes
Shane, 

Ah, what an elegant workaround! I thought of different ways to get this, but
the only thing I could think of was the tedious way of comparing in loops. I
would never have come to think of using the text frame index.

If it were not for you great guys on this list I wouldn't dare to even
launch the script editor.

Thanks!

/ Richard


On 02-11-25 08.41, in article BA081F5B.452BA%sstanley@myriad-com.com.au,
"Shane Stanley" <sstanley@myriad-com.com.au> wrote:


> With some tedium, looping through and doing comparisons. But why not let ID
> do the work for you:
> 
> tell application "InDesign 2.0.1"
> tell layer 1 of active document
> set myLayerStories to parent story of text frames whose text frame index =
> 1
> end tell
> end tel l
> 
Technical Details
Message-ID: <BA081FF4.9F7D%richard.ronnback@telia.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de6be8f.-1@WebX.la2eafNXanI> <BA081F5B.452BA%sstanley@myriad-com.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,5af732cb4a184874
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-25 10:08:05 PST
From: Richard R�nnb�ck <richard.ronnback@telia.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: How to remove multiple occurrences from a list? [AS]
Message-ID: <BA081FF4.9F7D%richard.ronnback@telia.com>
Date: Mon, 25 Nov 2002 09:44:04 -0800
References: <1de6be8f.-1@WebX.la2eafNXanI> <BA081F5B.452BA%sstanley@myriad-com.com.au>
Lines: 34
User-Agent: Microsoft-Entourage/10.1.1.2418
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit