Skip to main content
nycynik
Participating Frequently
August 10, 2010
Question

cross script communication

  • August 10, 2010
  • 1 reply
  • 449 views

Hi- Im writing a plug in, that I want people to be able to call via script.  Some parts of the plug in are actually scripts themselves, and I wanted to allow the client scripter to call functions inside our scripts.  How do I do this?

I found this snippit in the InDesign Scripting Guide (PDF):

#engine library

export random, libVersion;

const libVersion = "Library 1.0"; function random (max) {
return Math.floor (Math.random() * max);
}

But the ESTK just says that im using export incorrectly (of course this is copy and paste from the PDF).  How do I mark a function as exportable, or how do i call a function betwen scripts of different engines?

Thanks!

This topic has been closed for replies.

1 reply

nycynik
nycynikAuthor
Participating Frequently
August 13, 2010

I am going to go ahead and guess that this is not possible, since I can't find anything about it anywhere online.  I understand that other people cou

ld write a script in the same engine, but that there seems to be no cross engine support.

Steven__
Inspiring
August 16, 2010

If you are writing a plug-in this functionality should be easily attainable using the sdk.

If you are interested in consulting with me about this, please contact me in prvt