-
1. Re: JavaScript doScript commands fail to initiate VBScript
Velprakash Sep 6, 2012 2:47 AM (in response to AaronKuehn)I'm also having the same Issue. Can anyone fix it!!!!!!!!! I'm using CS5.
Thanks and Regards,
Vel.
-
2. Re: JavaScript doScript commands fail to initiate VBScript
Nadav Mar 27, 2014 9:37 AM (in response to Velprakash)I'm having the same problem with CC, except that I don't know how to reflect the different version (CC instead of CS4) nor do I know where is the .tlb file on my system.
Can anyone help me here please?
-
3. Re: JavaScript doScript commands fail to initiate VBScript
Luis Fernando Brito Mar 28, 2014 10:22 AM (in response to AaronKuehn)From the list of available references, select Adobe InDesign CS5 Type Library, and click OK. If the library
does not appear in the list of available references, click Browse and locate and select the file Resources
for Visual Basic.tlb, which is usually inside C:\Documents and Settings\<username>\Application
Data\Adobe\InDesign\Version 7.0\Scripting Support\ (where <username> is your user name).
If necessary, search for the file. Once you locate the file, click Open to add the reference to your project
Ensure that you have the tlb file in place if you want exploar the file to see if this recomento corrupted the following software:
-
4. Re: JavaScript doScript commands fail to initiate VBScript
Nadav Mar 28, 2014 10:53 AM (in response to Luis Fernando Brito)Thanks for the help.
Unfortunately , this isn't entirely helpfull.
I need to know which key to look for in the registry.
The registry key in the article refers to C4.
Also, I don't understand what you mean by "list of availabe references".
Finally, I'm talking about CC in Win7 and not CS5 on winXP
However, don't worry. Your answer did one really good thing. It gave me motivation to look for it by myself.
I located the tlb file in "C:\ProgramData\Adobe\InDesign\Version 9.0-ME\en_US\Scripting Support\9.0\Resources for Visual Basic.tlb" using explorer search.
Then, I looked for "Resources for Visual Basic.tlb" in the registry and found it in three different keys where they look for it in the hebrew version in here "C:\ProgramData\Adobe\InDesign\Version 9.0-ME\en_IL\Scripting Support\9.0\Resources for Visual Basic.tlb".
(notice en_IL instead of en_US).
So, instead of changing all three registry keys, I just copied the file to its appropriate location. Now it works just fine.
Therefore,
Thank you for your help
-
5. Re: JavaScript doScript commands fail to initiate VBScript
Luis Fernando Brito Mar 28, 2014 12:45 PM (in response to AaronKuehn)@ AaronKuehn - It's possible to force the execution of the script for a dertimnada version of indesign is so add the following line at the top.
"app.scriptPreferences.version = 6"
6 is forcing CS4
-
6. Re: JavaScript doScript commands fail to initiate VBScript
Nadav Mar 28, 2014 12:49 PM (in response to Luis Fernando Brito)Thanks, good to know.
Though I don't like the idea of reducing the script to CS4 just because I don't know how to do it in CC.
Anyway, as I said before, I did solve it for CC as well.


