Skip to main content
Inspiring
March 17, 2017

P: COM API - Exception on open

  • March 17, 2017
  • 12 replies
  • 468 views

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 has been closed for replies.

12 replies

Inspiring
March 20, 2017
Exception: Cannot open the file because the open options are incorrect

Despite this photoshop opens a document
Participating Frequently
March 17, 2017
Hi,

What exception are you getting? 

Thanks,
Eric