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?
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
...
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
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.