Article View: adobe.scripting.indesign
Article #19828Re: What use is an object's ID?
From: Shane Stanley
Date: Sun, 17 Nov 2002 21:29
Date: Sun, 17 Nov 2002 21:29
25 lines
1671 bytes
1671 bytes
It turns out that in the one place I could have sworn I needed to use them
instead of object references, I don't have to at all -- object references
are even more robust than I thought. For example, if I run:
t ell application "InDesign 2.0.1"
make document
set x to make rectangle at document 1
tell x
set content type to text type
set properties of parent story to {contents:"Some text"}
class
end tell
end tell
and I look at the log, I see:
get class of rectangle id 127 of page id 119 of spread id 114 of
document "Untitled-1"
--> text frame
Clearly, the fact that the class of the item has changed from rectangle to
text frame does not matter; all that matters is that the ID matches.
--
Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<B9FE5562.4415E%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!209.98.3.200.MISMATCH!priapus.visi.com!news-out.visi.com!hermes.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de6a0d6.-1@WebX.la2eafNXanI> <1de6a0d6.3@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:55:50 PST From: Shane Stanley <sstanley@myriad-com.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!209.98.3.200.MISMATCH!priapus.visi.com!news-out.visi.com!hermes.visi.com!eusc.inter.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: <B9FE5562.4415E%sstanley@myriad-com.com.au> Date: Sun, 17 Nov 2002 13:29:23 -0800 References: <1de6a0d6.-1@WebX.la2eafNXanI> <1de6a0d6.3@WebX.la2eafNXanI> Lines: 29 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit