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

Is it possible to upload a indd to publish online using Extendscript?

New Here ,
May 23, 2020 May 23, 2020

Copy link to clipboard

Copied

I have an Indesign Document and want to publish this as e-Paper using InDesigns Publish Online Feature.

This should be done by a Javascript, not with manual actions using the GUI.

I found the possibility to define some preferences using the PublishExportPreference

(https://www.indesignjs.de/extendscriptAPI/indesign-latest/#PublishExportPreference.html)

But I found no Method to start the upload?

 

Is there a possibility to upload the file and to get the URL of the published file?

TOPICS
Import and export , Publish online , Scripting

Views

921

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

correct answers 1 Correct answer

Community Expert , May 23, 2020 May 23, 2020

There doesn’t seem to be an export command for publish online. You could set the prefs and invoke the menu item:

 

var menuItem =  app.menuActions.itemByID(113414)
if(menuItem.enabled){  
    menuItem.invoke();  
};  

 

But you would have to somehow Publish after invoking the menu. You can do it with AppleScript using Stystem Events, but I’m not sure if there is a JS equivalent.

 

tell application "Adobe InDesign 2020"
	activate
	set c to item 1 of every menu action whose id is 113414
	tell acti
...

Votes

Translate

Translate
Community Expert ,
May 23, 2020 May 23, 2020

Copy link to clipboard

Copied

There doesn’t seem to be an export command for publish online. You could set the prefs and invoke the menu item:

 

var menuItem =  app.menuActions.itemByID(113414)
if(menuItem.enabled){  
    menuItem.invoke();  
};  

 

But you would have to somehow Publish after invoking the menu. You can do it with AppleScript using Stystem Events, but I’m not sure if there is a JS equivalent.

 

tell application "Adobe InDesign 2020"
	activate
	set c to item 1 of every menu action whose id is 113414
	tell active document
		invoke c
	end tell
	delay 0.5
	tell application "System Events" to keystroke return
end tell

 

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 ,
Jun 02, 2020 Jun 02, 2020

Copy link to clipboard

Copied

LATEST

This sounds like an possible and clever approach when using InDesign as a desktop version. The problem is, i forgot to mention, that I am looking fpr a posssibility to invoke the script on InDesign Server without the GUI.

 

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