Skip to main content
Adobe Photoshop Family

11 Messages

 • 

242 Points

Fri, Mar 17, 2017 9:20 AM

Solved

Photoshop 2017: COM API - Exception on open

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

Responses

Official Solution

Adobe Administrator

 • 

15.4K Messages

 • 

291.4K Points

4 years ago

This should be fixed by today's update: Photoshop CC 2017.1.1 (May 2017) Update Now Available

Sr. Product Manager, Adobe Digital Imaging

11 Messages

 • 

242 Points

Unfortunately it reproduces in 2017.1.1

Adobe Administrator

 • 

15.4K Messages

 • 

291.4K Points

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?

Sr. Product Manager, Adobe Digital Imaging

11 Messages

 • 

242 Points

It does not reproduce without start screen. That was discussed in comments above already.

Official Solution

Adobe Administrator

 • 

15.4K Messages

 • 

291.4K Points

3 years ago

Sr. Product Manager, Adobe Digital Imaging

11 Messages

 • 

242 Points

Yes it is fixed. Thank you!

Employee

 • 

86 Messages

 • 

2.3K Points

4 years ago

Hi,

What exception are you getting? 

Thanks,
Eric

11 Messages

 • 

242 Points

Exception: Cannot open the file because the open options are incorrect

Despite this photoshop opens a document

Employee

 • 

86 Messages

 • 

2.3K Points

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

11 Messages

 • 

242 Points

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

Employee

 • 

86 Messages

 • 

2.3K Points

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

11 Messages

 • 

242 Points

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