Highlighted

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

New Here ,
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?

Adobe Community Professional
Correct answer by rob day | Adobe Community Professional

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

 

TOPICS
Import and export, Publish online, Scripting

Views

451

Likes

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

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

New Here ,
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?

Adobe Community Professional
Correct answer by rob day | Adobe Community Professional

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

 

TOPICS
Import and export, Publish online, Scripting

Views

452

Likes

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
May 23, 2020 0
Adobe Community Professional ,
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

 

Likes

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
Reply
Loading...
May 23, 2020 0
New Here ,
Jun 02, 2020

Copy link to clipboard

Copied

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.

 

Likes

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
Reply
Loading...
Jun 02, 2020 0