Mombu the Computer Design Forum

Go Back   Mombu the Computer Design Forum > Computer_Design > Migrating scripts to InDesign Server
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 4th November 03:00
eliot harper
External User
 
Posts: 1
Default Migrating scripts to InDesign Server



Hello,

Could someone explain what the process is to migrate a JavaScript InDesign script so that it can be used by InDesign Server? From reading the server documentation, I understand that I can run scripts from the TestClient command-line tool, but what changes do I need to make the the script? Do I simply need to change the #target name (if so, to what?) and are there other differences that I need to be aware of?

Eliot
  Reply With Quote


 


2 4th November 03:00
dave_saunders
External User
 
Posts: 1
Default Migrating scripts to InDesign Server



Hi Eliot,

In all the work I've done with InDesign Server, I've never given a moments thought to the #target command. I think that's largely because in my case, I've been working with Typefi Publish and it launches my scripts and they are by definition targeted to ID Server.

Within the scripts, there's quite a lot to look out for. Nearly all UI-related stuff is unavailable. So, for example, there is no such thing as

app.activeDocument

in ID server. That's one of the reasons I use app.documents[0] in all my scripts, whether for server or desktop. Similarly, anything related to windows is unavailable and will cause errors.

If you have ESTK installed on a machine with InDesign Server, you should be able to see its object model in the Object Model Viewer under ESTK's Help menu.

Dave
  Reply With Quote


 


3 8th November 19:42
eliot harper
External User
 
Posts: 1
Default Migrating scripts to InDesign Server


Thanks Dave, I'll give it a whirl...
  Reply With Quote
Reply


Thread Tools
Display Modes




666