• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

P: COM API - Exception on open

Explorer ,
Mar 17, 2017 Mar 17, 2017

Copy link to clipboard

Copied

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

Bug Fixed
TOPICS
Windows

Views

175

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Adobe Employee , Oct 18, 2017 Oct 18, 2017

Votes

Translate

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

Votes

Translate

Translate
12 Comments
Adobe Employee ,
Mar 17, 2017 Mar 17, 2017

Copy link to clipboard

Copied

Hi,

What exception are you getting? 

Thanks,
Eric

Votes

Translate

Translate

Report

Report
Explorer ,
Mar 19, 2017 Mar 19, 2017

Copy link to clipboard

Copied

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

Despite this photoshop opens a document

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Mar 20, 2017 Mar 20, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Explorer ,
Mar 20, 2017 Mar 20, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Mar 22, 2017 Mar 22, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Explorer ,
Mar 22, 2017 Mar 22, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Adobe Employee ,
May 02, 2017 May 02, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Explorer ,
May 03, 2017 May 03, 2017

Copy link to clipboard

Copied

Unfortunately it reproduces in 2017.1.1

Votes

Translate

Translate

Report

Report
Adobe Employee ,
May 03, 2017 May 03, 2017

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Explorer ,
May 03, 2017 May 03, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Oct 18, 2017 Oct 18, 2017

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Explorer ,
Oct 18, 2017 Oct 18, 2017

Copy link to clipboard

Copied

LATEST
Yes it is fixed. Thank you!

Votes

Translate

Translate

Report

Report