Page 1 of 1

VB scripting for indesign

Posted: Sat Dec 16, 2006 2:36 pm
by biomikez
I'm just hitting my head against the wall, trying to script something for InDesign CS2 in Visual Basic. The closest syntax highlighter I found it Visual Basic 5.0. It omits lotsa objects and methods use in InDesign.
What do I do?
I have Visual Studio but this is WAY too bulky for what I'm doing. It has a way to connect to the Object Browser of the InDesign.
Can TextPad come up with something similar.
It would be priceless.
Michael

Posted: Sat Dec 16, 2006 3:37 pm
by bveldkamp
Maybe you can copy all keywords from the InDesign scripting guide, then generate a new syntax file?

Posted: Sat Dec 16, 2006 6:35 pm
by biomikez
And how do I do that? I'm not a super knoweldgeable in this kinds of things. All I have is a dll where I can retriave the data from.
Michael

Posted: Sun Dec 17, 2006 6:29 pm
by bveldkamp
If you can find a way to retrieve the keywords, it's pretty straightforward: Open a syntax file that closely resembles one you need (for instance this one: http://www.textpad.com/add-ons/files/sy ... ript56.zip), the syntax is very easy, just add the words you want highlighted to one of the "sections"

Code: Select all

[Keywords 5]
MyKeyword
MyOtherKeyword
I don't know how the keywords are stored in this dll, maybe you can use a tool such as ResourceHacker to retrieve them, or manually copy/paste them from the Scripting Guide, which you can download here: http://www.adobe.com/products/indesign/ ... riptingref

Posted: Tue Dec 19, 2006 10:41 am
by biomikez
thanks,
i managed to make a list of objects. Ha, only took me about an hour. Next question is: is it possible to highlight the errors? Or complete words as I type? I admit I didn't read all the documentation yet but from what I could see - no.
Michael

Posted: Tue Dec 19, 2006 3:53 pm
by bveldkamp
biomikez wrote:is it possible to highlight the errors? Or complete words as I type?
Short answer: No, that's not possible

Posted: Thu Dec 21, 2006 8:16 pm
by biomikez
Well well. So, if you were faced with this kind of situation. What Editor would you use?
Thanks for your patience by the way. :o)

Posted: Fri Dec 22, 2006 8:05 am
by bveldkamp
I really don't know Indesign... I'd probably use TextPad, Eclipse or VS.