0
Call javascript from vbscript (jsx inside vbs)
Explorer
,
/t5/indesign-discussions/call-javascript-from-vbscript-jsx-inside-vbs/td-p/1109224
Nov 12, 2008
Nov 12, 2008
Copy link to clipboard
Copied
Dear scripters,
I have two files
1. a.vbs
msgbox("This is Indesign Vbscript")
2. b.jsx
alert("This is Indesign Javascript")
I am placing a.vbs into the script panel, and it's working fine.
Now what I want to do is to call b.jsx from a.vbs.
How can I do this? thanks in advance
thanks
regards
a r u l
I have two files
1. a.vbs
msgbox("This is Indesign Vbscript")
2. b.jsx
alert("This is Indesign Javascript")
I am placing a.vbs into the script panel, and it's working fine.
Now what I want to do is to call b.jsx from a.vbs.
How can I do this? thanks in advance
thanks
regards
a r u l
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Valorous Hero
,
/t5/indesign-discussions/call-javascript-from-vbscript-jsx-inside-vbs/m-p/1109225#M337035
Nov 13, 2008
Nov 13, 2008
Copy link to clipboard
Copied
See DoScriptParameters.vbs example in indesign cs3 guide scripts.
Kasyan
Kasyan
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
hm_arul
AUTHOR
Explorer
,
/t5/indesign-discussions/call-javascript-from-vbscript-jsx-inside-vbs/m-p/1109226#M337038
Nov 13, 2008
Nov 13, 2008
Copy link to clipboard
Copied
Hi Kasyan
thanks for your reply I am working with cs2 windows xp, DoScript will support to CS2?
thanks
regards
a r u l
thanks for your reply I am working with cs2 windows xp, DoScript will support to CS2?
thanks
regards
a r u l
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Valorous Hero
,
/t5/indesign-discussions/call-javascript-from-vbscript-jsx-inside-vbs/m-p/1109227#M337040
Nov 13, 2008
Nov 13, 2008
Copy link to clipboard
Copied
Yes, you can run a JS script from VB script using DoScript method in CS2, but you can't send parameters and return values as in CS3.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
hm_arul
AUTHOR
Explorer
,
/t5/indesign-discussions/call-javascript-from-vbscript-jsx-inside-vbs/m-p/1109228#M337041
Nov 13, 2008
Nov 13, 2008
Copy link to clipboard
Copied
Hi kasyan
here is my script
a.vbs
Set myInDesign = CreateObject("InDesign.Application.CS2")
Msgbox("This message from Vbscript")
myJavaScript = "C:\Program Files\Adobe\Adobe InDesign CS2\Presets\Scripts\b.jsx"
myInDesign.DoScript myJavaScript
is this syntax is correct? I am getting error "Incompatible or unsupported scripting language"
where I am mistaken?
here is my script
a.vbs
Set myInDesign = CreateObject("InDesign.Application.CS2")
Msgbox("This message from Vbscript")
myJavaScript = "C:\Program Files\Adobe\Adobe InDesign CS2\Presets\Scripts\b.jsx"
myInDesign.DoScript myJavaScript
is this syntax is correct? I am getting error "Incompatible or unsupported scripting language"
where I am mistaken?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
hm_arul
AUTHOR
Explorer
,
LATEST
/t5/indesign-discussions/call-javascript-from-vbscript-jsx-inside-vbs/m-p/1109229#M337042
Nov 13, 2008
Nov 13, 2008
Copy link to clipboard
Copied
Hi Kasyan
thank you so much for your suggesion I missed this line
myInDesign.DoScript myJavaScript, idScriptLanguage.idJavaScript
now Its working perfect
thanks a lot
regards
a r u l
thank you so much for your suggesion I missed this line
myInDesign.DoScript myJavaScript, idScriptLanguage.idJavaScript
now Its working perfect
thanks a lot
regards
a r u l
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

