Skip to main content
MastaMind82
Participant
February 14, 2011
Answered

Is this asking too much from scripting?

  • February 14, 2011
  • 1 reply
  • 464 views

I am looking at making a script to do some repetative tasks (I have about 3,000 images I need this to work with).  I'll lay out my thought and if it is possible let me know and I will do more research into making it work, otherwise I'll do it the hard way.  Here is the need:

Open Image

     - Resize to 12 x 12 @ 300 DPI

     - Save Image with "-12x12" added to end of file name

     - Copy new 12 x 12 to "template1" photoshop document.

     - Close 12x12 doc.

     - Resize image on "template 1" to fit the template (template is 4 x 4 @ 72 dpi)

     - Save for web and devices with "-thumbnail" added to original documents name

     - Copy template 1 image to template 2

     - Again resize and save for web and devices adding "-thumbnail2" to original documents name.

Basically that is what I need to do,  right now I have an action that can do all of that, but I would love it if I could get it to do all the file naming without me having to type it all in for each image.  So at the end I would like the files to look like such:

picture001

picture001-12x12

picture001-thumbnail

picture001-thumbnail2

The biggest issue is when I do a save for web and devices the default name in the dialog box is the actual document name, I need the document names to carry over with the proper addtions to them.  Is this possible to automate the entire process or am I asking for too much?

Thank you,

Dave

This topic has been closed for replies.
Correct answer xbytor2

If this is all one action, don't put the 'save' steps in your action. Write a bit of javascript that does the save with the filename tweaking that you need.

For steps that already have the 'save' step builtin (SFW, for instance), write a bit of javascript that renames/copies the file after that step.

1 reply

xbytor2Correct answer
Inspiring
February 14, 2011

If this is all one action, don't put the 'save' steps in your action. Write a bit of javascript that does the save with the filename tweaking that you need.

For steps that already have the 'save' step builtin (SFW, for instance), write a bit of javascript that renames/copies the file after that step.

MastaMind82
Participant
February 14, 2011

Thank you for the quick response,  good idea on doing the file naming after the action takes place... I didn't think of doing that.  I'll get going on writing the javascript and let you know how it turns out for me.  Thanks again