Thread View: adobe.indesign.sdk
5 messages
5 total messages
Started by shwetag
Mon, 02 Mar 2009 18:13
Can I set some tag from JavaScript that a Plug-in(C++) can read ?
Author: shwetag
Date: Mon, 02 Mar 2009 18:13
Date: Mon, 02 Mar 2009 18:13
3 lines
741 bytes
741 bytes
Is there any way that I can set some label or attribute in the javascript and a plug-in can then read it later on. Like a document label or box label or frame label anything ? thanks
Re: Can I set some tag from JavaScript that a Plug-in(C++) can read ?
Author: 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).
Re: Can I set some tag from JavaScript that a Plug-in(C++) can read ?
Author: shwetag
Date: Tue, 03 Mar 2009 14:28
Date: Tue, 03 Mar 2009 14:28
1 lines
662 bytes
662 bytes
thanks that helped a lot.
Re: Can I set some tag from JavaScript that a Plug-in(C++) can read ?
Author: dougnorton
Date: Sat, 28 Mar 2009 11:42
Date: Sat, 28 Mar 2009 11:42
1 lines
718 bytes
718 bytes
You can also set custom labels using insertLabel. How would you read these using a plug-in?
Re: Can I set some tag from JavaScript that a Plug-in(C++) can read ?
Author: Dirk_Becker
Date: Sat, 28 Mar 2009 12:03
Date: Sat, 28 Mar 2009 12:03
1 lines
655 bytes
655 bytes
IScript at IID_ISCRIPT extends IScriptLabel.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads