VB scripting for indesign

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
biomikez
Posts: 4
Joined: Sat Dec 16, 2006 2:27 pm

VB scripting for indesign

Post 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
Only for the insane the fee for entrance is reason
bveldkamp

Post by bveldkamp »

Maybe you can copy all keywords from the InDesign scripting guide, then generate a new syntax file?
biomikez
Posts: 4
Joined: Sat Dec 16, 2006 2:27 pm

Post 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
Only for the insane the fee for entrance is reason
bveldkamp

Post 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
biomikez
Posts: 4
Joined: Sat Dec 16, 2006 2:27 pm

Post 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
Only for the insane the fee for entrance is reason
bveldkamp

Post by bveldkamp »

biomikez wrote:is it possible to highlight the errors? Or complete words as I type?
Short answer: No, that's not possible
biomikez
Posts: 4
Joined: Sat Dec 16, 2006 2:27 pm

Post 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)
Only for the insane the fee for entrance is reason
bveldkamp

Post by bveldkamp »

I really don't know Indesign... I'd probably use TextPad, Eclipse or VS.
Post Reply