Jump to content

Photoshop: action to open next sequential file?


Recommended Posts

Another PS action question: can an action be created to take the currently open file (any file type) and save it as a PSD? I'd want to save it with the same name (except a different extension of course), in the same folder. [i'm piggy-backing my question onto this thread - hope that's okay with you, John!]
Link to comment
Share on other sites

When I created an action to save the current file as a PSD file, it recorded the path/folder as well, so the problem is that I can't use that action with image files in any other folder. Not practical. How can I create the action to just save the file as a PSD inside of whatever folder the original file is in?
Link to comment
Share on other sites

Automate won't work because I don't want to apply the same editing changes to all the files.

 

It looks like scripting is the way to go. I found the following page with a sample script that does this as part of a batch process.

 

For this application I think we'd need two scripts: an initial one to navigate to a folder and populate a queue. Then our second script to cyle through it one file at a time.

 

I find it hard to believe someone hasn't already done something like this.

 

 

http://www.lodgephoto.com/articles/pshop_scripting.htm

 

// get all files in the input folder

var fileList = inputFolder.getFiles(SEARCH_MASK);

 

// Open each file in turn

for (var i = 0; i < fileList.length; i++) {

// Only want to open non-hidden files (and no folders)

if ((fileList instanceof File) && (fileList.hidden == false)) {

// Open the file in Photoshop

var docRef = open(fileList);

if (docRef == null)

throw X_BADDOC;

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...