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
October 19, 2017
Yes it is fixed. Thank you!
Legend
October 18, 2017
Inspiring
May 4, 2017
It does not reproduce without start screen. That was discussed in comments above already.
Legend
May 3, 2017
Can you try an experiment for me? Go to Preferences > General. Uncheck "Show Start Screen with no documents open" and restart Photoshop. Does that help?
Inspiring
May 3, 2017
Unfortunately it reproduces in 2017.1.1
Legend
May 2, 2017
This should be fixed by today's update: Photoshop CC 2017.1.1 (May 2017) Update Now Available
Inspiring
March 23, 2017
I think I should mention that it reproduced only with COM API and it does not reproduce if you open document using extendscript(javascript) or ActionDescriptors
Participating Frequently
March 22, 2017
I have not been able to reproduce under any circumstances. Since it does not reproduce for you with the Start workspace disabled, this is sounding very similar to another bug that has mostly been reproducible on Mac. I'll add this info to that bug.

Thanks for the report!

Eric
Inspiring
March 21, 2017
1. Forgot to mention - Photoshop was not running.
2. With Start workspace disabled it does not reproduce.
3. Problem reproduced with and without plugins.
4. System Info: http://pastebin.com/zSgXJ24r
Participating Frequently
March 20, 2017
I have not been able to reproduce on either Windows 7 or Windows 10.

Do you get different results if Photoshop is running or not when you run the script? 

Can you try disabling the Start workspace and try again? You can disable in preferences on the General tab. Just uncheck "Show Start Workspace When No Documents Are Open".

If you have plugins, try launching Photoshop with them disabled. Hold the shift key down when you launch Photoshop.

Also, could you attach System Information?

Thanks,
Eric