Question
Reference to object by ID (Applescript)
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
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