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

Open photoshop file in "silent mode"

New Here ,
Jul 27, 2011 Jul 27, 2011

Is there a way to open a photoshop document in some sort of "silent" mode, where the GUI doesn't actually launch?  I am looking to open/edit/save changes to a .psd without the UI ever being launched.  Using the adobe API & scripting I am able to accomlish all of the files changes I want, I would just prefer if all the work is done behind the scenes without the GUI ben launched.  Any assitance would be appreciated!

TOPICS
Actions and scripting
3.5K
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
Adobe
Community Expert ,
Jul 27, 2011 Jul 27, 2011

I don't think that is posible however you may be able to minmize Photoshop while the script runs and see noothing. When your CPU useage drops the script is most likely done.

JJMack
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
Explorer ,
Jul 27, 2011 Jul 27, 2011

This is possible when using the COM API:

$ps = new COM("Photoshop.Application.".$version) or die ("Failed to initialize.");

$ps->Visible = false;

$ps->DisplayDialogs = 3;

But I never used it in production environment, so I can't say that it is as stable as Javascript.

Regards, markus

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
Guest
Sep 10, 2011 Sep 10, 2011

Your bang on the money markus.

It's works out well.

For anyone using this code though.

When you create the object "photoshop" it does fire off and you do see the logo.

Then after it loads it is then hidden.

vbcode:

        Dim objApp

        objApp = CreateObject("Photoshop.Application")
        objApp.visible = false

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
Community Beginner ,
Sep 14, 2011 Sep 14, 2011

Hi Markus-

Where's the best source of info on the COM API?

Thanks!

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
Explorer ,
Sep 14, 2011 Sep 14, 2011

Aktually I do not now any documentation of Photoshops COM Interface. Years ago, I needed to communicate with ps through a PHP script and so I discovered that Photoshop exposes the same properties and methods as described in javascript guide or vb guide also to the COM Object.

All I needed was to push Javascript-Code from PHP to a version of Photoshop that ran hidden in the background.

something like that:

$version = 12;

$ps = new COM("Photoshop.Application.".$version) or die ("Failed to initialize.");

$ps->Visible = $visible;

$ps->DisplayDialogs = 3;

echo $ps->path; //echo a property

$ps->DoJavaScript("alert(123);"); //perform javascript

$ps->quit(); //perform a DOM function

This however is the only experience I have with photoshop's COM interface. I never needed to use it again later.

Regards,

markus

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
Engaged ,
Sep 09, 2013 Sep 09, 2013

Where does this run from?

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
Advocate ,
Sep 12, 2013 Sep 12, 2013
LATEST

There is a reference to a "viewLessDocument" in CreateImageStack.jsx

See also the topic on PS-Scripts here.

Davide

www.davidebarranca.com

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