Article View: adobe.scripting.indesign
Article #5Re: Reference to object by ID (Applescript)
From: Dirk_Becker
Date: Tue, 31 Mar 2009 19:10
Date: Tue, 31 Mar 2009 19:10
35 lines
1382 bytes
1382 bytes
The class of objects addressed by ID is not checked - probably a minor bug. Most of these IDs (except XML elements) are unique across the classes. You can take advantage of that by using any class. The resulting object will have the correct class anyway.
I would prefer to suggest you use some generic base class instead, but "Object" does not work.
tell application "Adobe InDesign CS4"
tell active document
get id of page 1
-- 190
get class of character style id 190
-- page
get side of page id 190
-- right hand
get side of character style id 190
-- right hand
end tell
end tell
Dirk
Technical Details
Message-ID:
<59b875bb.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossingReferences:
<59b875bb.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fbc1ef9910378549 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Dirk_Becker@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Reference to object by ID (Applescript) Message-ID: <59b875bb.0@webcrossing.la2eafNXanI> Date: Tue, 31 Mar 2009 12:10:28 -0700 References: <59b875bb.-1@webcrossing.la2eafNXanI> Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit