🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19827

Re: What use is an object's ID?

#19827
From: Olav Kvern
Date: Sun, 17 Nov 2002 19:33
13 lines
1709 bytes
Mike-- 

In general, object IDs are more useful than referring to an object by its index (which is what most object references do). The only catch is that we can't use IDs in Object.Item(n) references, as we can with named objects (e.g., ParaStyles.Item("body_text")). Shane, being an AppleScript guy, can do that. 

Next, text stream objects (Paragraphs, for example) do not have an ID property. It would be very cool if they did, as we could then freely change text before the object without invalidating the object reference. 

Comparing object IDs will tell you very little, as you can't count on them being assigned in any predictable fashion. 

Apart from that, however, they're very useful. I could swear I used them in a number of examples in the SG, but I don't have time to find them right at the moment. I'll try to add an example to this thread as soon as I can. 

Thanks, 

Ole
Technical Details
Message-ID: <1de6a0d6.4@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!205.215.62.125.MISMATCH!in.100proofnews.com!in.100proofnews.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de6a0d6.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,69b6010c913419c7
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-17 14:44:03 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!205.215.62.125.MISMATCH!in.100proofnews.com!in.100proofnews.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: What use is an object's ID?
Message-ID: <1de6a0d6.4@WebX.la2eafNXanI>
Date: Sun, 17 Nov 2002 11:33:29 -0800
References: <1de6a0d6.-1@WebX.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit