🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #181

Reference to object by ID (Applescript)

#181
From: Peter_Bossens
Date: Tue, 31 Mar 2009 12:32
15 lines
973 bytes
Applescript - InDesign CS2
I would like to check some attributes of an object within a document from which I know the ID.
How can I reference to this object using applescript?

Suppose the ID is "3102", I would expect someting like:

set myObject to item id 3102
if name of fill color of myObject is .... then ...
or:
select myObject ....

...but this does not work! Any suggestions?

Thanks,
Peter
Technical Details
Message-ID: <59b875bb.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fbc1ef9910378549,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Peter_Bossens@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Reference to object by ID (Applescript)
Message-ID: <59b875bb.-1@webcrossing.la2eafNXanI>
Date: Tue, 31 Mar 2009 05:32:45 -0700
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit