rkamysz / adobe-node

Control Adobe applications - such as Photoshop, Animate, Illustrator, InDesign - from node. Run JavaScript to remotely - from the command line - create, modify or export document content. This module can be used to automate the workflow by creating an action chain that can be executed without user intervention.
MIT License
63 stars 10 forks source link

Cannot open Adobe Indesign #4

Open papuruth opened 4 years ago

papuruth commented 4 years ago

Hi, I have a problem here I am unable to open Adobe Indesign it gives an error saying broadcast is not a function.

Also if I do like this code below the app is launched

      app: {
        name: AdobeAppName.Photoshop,
        path: 'C:\\Program Files\\Adobe\\Adobe InDesign 2020\\InDesign.exe',
        adobeScriptsPath: 'C:\\Users\\d-Evil\\scripts'
      },
      host: 'localhost',
      port: 5000
    });

but there is an error saying cannot open the file open_app.jsx, Adobe Indesign may not support the file-format. image

rkamysz commented 4 years ago

Hi I will check that.

rkamysz commented 4 years ago

You can check branch issues-2 and link it to your project. Ive added InDesign broadcast method so you can replace

app: {
       name: AdobeAppName.Photoshop, ---> AdobeAppName.InDesign
...

Im also getting this error on trial. I dont know is it because of the trial version. Do you know how to run any custom scripts with InDesign?

papuruth commented 4 years ago

Thanks, I checked it. I did what you have done. I checked running the open_app.jsx from window cmd it doesn't pop any error. But in network panel the server listens on 5000. I guess it just false error.

rkamysz commented 4 years ago

Hi, I will check it again, just need time, Can't promise anything

rkamysz commented 4 years ago

Hi @papuruth ,Sorry I had no time and Im not sure if I can use InDesign now (trial). Which command did you use to run this open_app.jsx?

rkamysz commented 4 years ago

Hi @papuruth Ive added BridgeTalk but without adobe App so Im dont know if it works please check it on bridge-talk branch. Clone it then run tsc && npm pack then install it in your node app via npm i ...path_to/adobe-node-1.1.4.tgz

Please let me know if it works or help me with that due to my lack of time and Adobe licenses :D

shchoi82 commented 3 years ago

Hi the Adobe Illustrator does not start

const app: AdobeApp = newAdobeApp({
    app: {
        name: AdobeAppName.Illustrator,
        path: '/Applications/Adobe Illustrator 2021/Adobe Illustrator.app',
        // path: '/Applications/Adobe Illustrator 2021/Adobe Illustrator.app',
        adobeScriptsPath: '/Applications/Adobe Illustrator 2021/Presets.localized/ko_KR/스크립트',
        // adobeScriptsPath: '/Applications/Adobe Photoshop CC 2019/Presets/Scripts'
    },
    host: 'localhost',
    port: 5000
});

I did change the access/permissions settings to the directory set in the adobeScriptsPath

rkamysz commented 3 years ago

Hi @shchoi82, It's been a while, I will have to look at the code but the problem is I don't have Adobe software (I have no plans to buy one). I think we would have to pair on that. Maybe try to add some logs, check if exec is executing etc