Article View: adobe.scripting.indesign
Article #234Find object's unique ID
From: Dv1
Date: Wed, 03 Feb 2010 22:13
Date: Wed, 03 Feb 2010 22:13
20 lines
1635 bytes
1635 bytes
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
Technical Details
Message-ID:
<0211dd42-1c19-4d4e-8331-39c6b8af5b2a@t34g2000prm.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!t34g2000prm.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!t34g2000prm.googlegroups.com!not-for-mail From: Dv1 <davidmdunlop@gmail.com> Newsgroups: adobe.scripting.indesign Subject: Find object's unique ID Date: Wed, 3 Feb 2010 14:13:26 -0800 (PST) Organization: http://groups.google.com Lines: 20 Message-ID: <0211dd42-1c19-4d4e-8331-39c6b8af5b2a@t34g2000prm.googlegroups.com> NNTP-Posting-Host: 12.158.68.66 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1265235216 19257 127.0.0.1 (3 Feb 2010 22:13:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 3 Feb 2010 22:13:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t34g2000prm.googlegroups.com; posting-host=12.158.68.66; posting-account=Lrl0RgoAAADdF5XOuRN5ru6HdRyndE3m User-Agent: G2/1.0 X-HTTP-Via: 1.1 W2003ISA1 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5,gzip(gfe),gzip(gfe)