Skip to main content
Participant
August 2, 2024
Question

Load *.Indd & saving it in a second file inside Javascript and without user UI under Adobe Server 24

  • August 2, 2024
  • 2 replies
  • 357 views

Hi,

i am a newbee and hoping that someone might be able to help me out with.

I am trying to create a Javascript running on Adobe Server 2024 that loads a *.indd file as document, modifies it and then stores it under another file name. How can i do that with the help of the ExtendScript Toolkit?

Thank you very much!

BR
Sami

This topic has been closed for replies.

2 replies

Peter Kahrel
Community Expert
Community Expert
August 3, 2024

 "app.open is no function"

 

That suggests that you're not talking to InDesign. Did you point the ESTK to InDesign (or InDesign Server if you installed it locally)? Select it from the dropdown at the top left of the ESTK's window:

 

 

Robert at ID-Tasker
Legend
August 2, 2024

If you are a newbie - starting scripting journey from InDesign Server isn't a good idea. 

 

Scripting InDesign Server is pretty much the same as regular InDesign - you just need to remember that there is no UI - so no access to Clipboard and no Selection. 

 

Participant
August 2, 2024

Well, i have to jump into to ice cold water.

I am trying to load the Indd file by the lines:

var doc = app.open(File("<filepath"));

But inside ExtendScript Toolkit, i am getting the error "app.open is no function".

What am i missing here?