I have developed javascript(.js) for adobe illustrator. Now i need to know how to call javascript from vb6.
Regards,
Maria
Printable View
I have developed javascript(.js) for adobe illustrator. Now i need to know how to call javascript from vb6.
Regards,
Maria
Try to look for your answer here
Edit:
Sorry, here:
http://msdn2.microsoft.com/en-us/lib...4a(VS.85).aspx
What do you mean call JavaScript from VB? :confused: JavaScript is a language written for web browsers, and it uses the browser's object model, ie: DOM (Document Object Model).
Can you give an example what you want to do?
If I'm remembering correctly, Illustrator can work with JavaScript, accept certain commands, etc. What I don't know is how Illustrator accepts the .js (or .vbs for that matter). It may be a commandline argument, but you will need to consult the Illustrator documentation on how this can be invoked via command line. Once you get that, I'm sure VB6's Shell can help you.
I called the javascript(.js) file through visual Basic for Adobe illustrator CS. Its working nice. But some times javascript runtime error occured. But if i run the .js file directly, it does not throws any error. Could you please advice me.Quote:
Originally Posted by mendhak
code:
Dim docref As Illustrator.Document
Dim appRef As New Illustrator.Application
appRef.DoJavaScriptFile ("C:\HH.js")
Thanks,
Maria