Search code examples
adobeadobe-extension

Adobe CEP 8 Photoshop-Image-Import


I created a PremierePro Extension which could download and import a file to a project. The same extension unfortunately does not work under Photoshop, because the host scripts app instance doesn't contain a project. I tried out different formats like .psd, but no project appears.

hostScript.jsx:

app.project // === null

I import the file I downloaded by this command:

csInterface.evalScript("app.project.importFiles(['" + fullPath + "'])");

Due to the fact that I can't debug the host scripts I'm a bit stucked. I havn't found an example of importing files to photoshop either.

Does anyone have a clue how to import a file to photoshop, or is there another way to create a explicit project?


Solution

  • It's just the open command:

    csInterface.evalScript("app.open(File('" + encodeURIComponent(fullPath) + "'));");