• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Aug 02, 2024 Aug 02, 2024

Copy link to clipboard

Copied

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

TOPICS
How to , Print , Scripting , UXP Scripting

Views

177

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 02, 2024 Aug 02, 2024

Copy link to clipboard

Copied

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. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 02, 2024 Aug 02, 2024

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 02, 2024 Aug 02, 2024

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 02, 2024 Aug 02, 2024

Copy link to clipboard

Copied

This should be better than what's in the PDF:

 

https://documentation.help/InDesign-Server-CS5.5/pc_Application.html#open

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 02, 2024 Aug 02, 2024

Copy link to clipboard

Copied

Should work. Not sure what your IDS/ESTK configuration is like. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 02, 2024 Aug 02, 2024

Copy link to clipboard

Copied

LATEST

 "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:

 

PeterKahrel_1-1722652573383.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines