Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Find object's unique ID

3 views
Skip to first unread message

Dv1

unread,
Feb 3, 2010, 5:13:26 PM2/3/10
to
VBscript-Indesign CS4

I am trying to display the ID of a selected object, but I don't know
what I'm doing, this is what i have:

Function main()
Set myInDesign = CreateObject("InDesign.Application.CS4")
myInDesign.Activate
If myInDesign.Documents.Count <> 0 Then
If myInDesign.Selection.Count <> 0 Then
Set ObjID = InDesign.Selection.Pageitems.ID
MsgBox (ObjID & "Test")

Else
MsgBox ("Please select an object and try again.")
End If
Else
MsgBox ("Please open a document, select an object, and try again.")
End If
End function

0 new messages