Jump to content
Macro Express Forums

Capturing a list of windows


activegnome
 Share

Recommended Posts

I do a lot of work in Photoshop 7 where I open a big batch of images and go through them one at a time. For example, here's what my work flow looks like:

 

Load 100 photos in to Photoshop

Look at a photo and make a quick decision to keep or discard based on composition, image quality, etc. Close it if I don't wish to keep it, otherwise minimize the window.

Repeat until the first pass is done.

 

Restore every image window that remains. *

 

Using Photoshop's Automation -> Batch menu, I apply my "Standard Modifications" action to every open file.

 

Look at a photo, make any necessary adjustments or discard based on a number of subjective factors. Close if I don't wish to keep it, otherwise minize the window.

Repeat until the second pass is done

 

Using Photoshop's Automation -> Batch menu, I apply my "Save as PSD" action to every open file.

Open those saved PSD files.

Using Photoshop's Automation -> Batch menu, I apply my "Save as JPG" action to every open file.

 

Delete the lower quality working copies and move the finished PSD's and JPG's into the project's Finished folder.

 

Repeat this process until I have worked through all of my working copies.

 

The pain point is "Restore every image window that remains" because I have not figured out a way to get a list of all of the document windows. I can, get an individual window by name, give it focus, and then manipulate that window. See the direct script code below:

<GETCONTROL:01:PHOTOSHOP.EXE:003:PhotoshopAdobe PhotoshopMDIClientPSDocCSeussical_20080103200942.JPG @ 33.3% (RGB)><SETFOCUS:01>

 

But the elusive give me all of the windows of a specific class and then iterate through them...I'm at a loss for.

 

Any help that can be given would be greatly appreciated.

 

Thanks!

Link to comment
Share on other sites

  • 3 months later...
We do not use Photoshop here, but have you tried using the Repeat with Windows / Repeat End construct to get a list of windows? Not sure if it can grab Photoshop sub-windows.

It works in so much that every window is hit, but it fails in that it doesn't know when to stop.

 

It's sad that it took me almost a year to come back to this.

 

Thanks!

Rory

Link to comment
Share on other sites

I use a free photo app called IrfanView and do this sort of thing often. It has batch capability as well but most things can be done from the command line. This works really well with ME and the Repeat with Folder. Also IrfanView has most all of it's commands available from simple keystroke combinations. It can't stick your ex-GF's head on a dog but it can do most common ops one would do in a batch. I could use Photo Shop as well but this program is very thin and quick and lends itself much better to automation.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...