Skip to main content
Participant
September 24, 2011
Question

Batch "Open as" action

  • September 24, 2011
  • 4 replies
  • 1652 views

Hello ladies and gents,

Basically i want to create an action in CS5 to batch "open as" images using PNGOUT plug-in.

The images are indexed and i need to open as "PNGOUT" to convert them to RGBalpha. There are hundreds of images and i really don't want to do it manually one at a time.

I can create an action to open as easily enough, but the problem is it will only open up that image used to create the action.

So..... is there a way??

This topic has been closed for replies.

4 replies

mark_d79Author
Participant
September 25, 2011
c.pfaffenbichler
Community Expert
Community Expert
September 26, 2011

Thanks.

Have you tested yet if opening the file with the plugin creates ScriptinListener-code?

JJMack
Community Expert
Community Expert
September 26, 2011

He recorded it in an action so I would think the scriptlistener would record it also.

Mark

The scriptlistner plug-in ships with Photoshop. When installed everything that is recordable by Photoshop that you do will be recorded into two scriptlistener files on your desktop. One in javascriipt code the other in vbs code. Like actions the code is step step step no logic however you can change the hard coded filename in the OPEN AS step code to a variable and make a function out of that step's code.  You could then write a script to process all the png files in a folder or tree.  The loop gets the file name then can use the open as function you made from the scriptlistener code.. The script could do you action then or you could do the steps you  do in the action in the script.   There are many threads here that have code in them to process a folder files.   

JJMack
mark_d79Author
Participant
September 25, 2011

As you can see the left image is opened WITHOUT PNGOUT plugin(photoshop standard), the images on the right is.

This only works when i "open as PNGOUT" selected.

Sorry i'm working with png images, i thought the PNGOUT plugin would have given that away.

c.pfaffenbichler
Community Expert
Community Expert
September 25, 2011

The »indexed« part seemed suspicious to me.

Just out of criosity, could you also post the original png?

c.pfaffenbichler
Community Expert
Community Expert
September 25, 2011

The images are indexed

What file formats are you talking about?

And how would Photoshop’s regular opening fall short of the PNGOUT plugin’s output?

JJMack
Community Expert
Community Expert
September 25, 2011

Don't put an open step in the action. Creat the action without any open and use menu File>Automate>Batch to open your files for the action. Batch can process all files in a folder.  If you do not want to process all the files in a folder you can use the Bridge to select the files you want to process then use the bridge menu Tools>Photoshop>Batch to process the selected files.  You can also look at the Image Pfrocess script if you need to process a tree. The image processor can not overwrite the processed files...

JJMack