Skip to main content
Inspiring
Mar 17, 2017 9:20 AM UTC
Released

P: COM API - Exception on open

Photoshop 2017 - Sample jscript:

var app = new ActiveXObject("Photoshop.Application");
try
{


app.Open("path\to\file.psd");
WScript.Echo("OK");
}
catch(e)
{


WScript.Echo("Exception: " + e.message);
}

Throws an exception in Photoshop 2017. Works fine in previous versions.

OS: Windows 7 x64

This topic is closed to new replies. Start a new post to keep the conversation going.

12 replies

Inspiring
Mar 20, 2017 4:22 AM UTC
Exception: Cannot open the file because the open options are incorrect

Despite this photoshop opens a document
Translate
Participating Frequently
Mar 17, 2017 2:48 PM UTC
Hi,

What exception are you getting? 

Thanks,
Eric
Translate