es gibt einen do script befehl. ich hab ihn selbst noch nicht benutzt, verstehe das aber so, dass möglicherweise ein javascript durch ein appleskript (bzw. vb) angestoßen werden kann.
auszug aus adobes scripting forum:
Can I start a JavaScript with a VBScript with the Windows Scripting Host?
Thanks
Chris
Message #6
. Issue a do script command that points at the JavaScript (or copy the JavaScript into a variable and point do script at the variable.
However, communicating between the two scripts might involve some ingenuity. For example, you can't pass a result back through the do script command. Either let the communication be implicit in the state of the document or use a label of something to pass information.
Dave
Message #7
The Problem is, that I need to use the Windows Scripting Host. How can I tell JavaScript to work with InDesign and not with whatever?
I tried things like this but it didn't work:
--------
Set myInDesign = CreateObject("InDesign.Application.CS")
myJavaScript="_app = new ActiveXObject(""InDesign.application.CS"")"
myIndesign.DoScript myJavaScript
Message #8
But you can only use JavaScript that InDesign knows about. It doesn't know about ActiveXObjects so that indeed won't work.
Dave
Message #9
Try:
myJavaScript = "alert('Hello World')"
myIndesign.DoScript myJavaScript
and see if that works (I'm basing my syntax on what you wrote).
Dave
als Antwort auf: [#112321]