Article View: adobe.indesign.sdk
Article #116Re: Can I set some tag from JavaScript that a Plug-in(C++) can read ?
From: jongware
Date: Mon, 02 Mar 2009 20:02
Date: Mon, 02 Mar 2009 20:02
10 lines
1053 bytes
1053 bytes
Almost every object inside an InDesign document can have a label. In JS, simply use
[whatever].label = "Your private data";
where "whatever" is anything from Application, Asset, AssignedStory, Assignment, Behavior, Book, BookContent, Bookmark, Button, Cell, CellStyle ... and so on (about 100 items).
The string may be any string you want, of any reasonable length (I remember seeing a limit of 32,767 characters somewhere).
Technical Details
Message-ID:
<59b8175e.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b8175e.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f63e9,ee19b7df7d5fcbec X-Google-Attributes: gidf63e9,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: jongware@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.indesign.sdk Subject: Re: Can I set some tag from JavaScript that a Plug-in(C++) can read ? Message-ID: <59b8175e.0@webcrossing.la2eafNXanI> Date: Mon, 2 Mar 2009 12:02:20 -0800 References: <59b8175e.-1@webcrossing.la2eafNXanI> Lines: 11 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit