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

P: COM API - Exception on open

Explorer ,
Mar 17, 2017 Mar 17, 2017

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
360
Translate
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
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
Translate
12 Comments
Adobe Employee ,
Mar 17, 2017 Mar 17, 2017
Hi,

What exception are you getting? 

Thanks,
Eric
Translate
Report
Explorer ,
Mar 19, 2017 Mar 19, 2017
Exception: Cannot open the file because the open options are incorrect

Despite this photoshop opens a document
Translate
Report
Adobe Employee ,
Mar 20, 2017 Mar 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
Translate
Report
Explorer ,
Mar 20, 2017 Mar 20, 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
Translate
Report
Adobe Employee ,
Mar 22, 2017 Mar 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
Translate
Report
Explorer ,
Mar 22, 2017 Mar 22, 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
Translate
Report
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
Translate
Report
Explorer ,
May 03, 2017 May 03, 2017
Unfortunately it reproduces in 2017.1.1
Translate
Report
Adobe Employee ,
May 03, 2017 May 03, 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?
Translate
Report
Explorer ,
May 03, 2017 May 03, 2017
It does not reproduce without start screen. That was discussed in comments above already.
Translate
Report
Adobe Employee ,
Oct 18, 2017 Oct 18, 2017
Translate
Report
Explorer ,
Oct 18, 2017 Oct 18, 2017
LATEST
Yes it is fixed. Thank you!
Translate
Report