jkantor Posted May 13, 2004 Share Posted May 13, 2004 I want to semi-automate my editing workflow, so I need an action to save the current file I'm working on and open the next sequential file in the folder. Can you do that in Photoshop? Link to comment Share on other sites More sharing options...
marshall Posted May 13, 2004 Share Posted May 13, 2004 I can't think of a way to do that. Actions can contain close and open commands, but I can't think of a way in the Pshop command set to get it to base the next open on the previous close. Maybe I'm wrong? Link to comment Share on other sites More sharing options...
emre Posted May 13, 2004 Share Posted May 13, 2004 I am sure it is possible, but you would need to write a script to do obtain the name of the next file in the sequence. The guides are here: http://partners.adobe.com/asn/photoshop/scripting.jsp Link to comment Share on other sites More sharing options...
john_bald Posted May 13, 2004 Share Posted May 13, 2004 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 More sharing options...
john_bald Posted May 13, 2004 Share Posted May 13, 2004 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 More sharing options...
beno_t_marchal Posted May 13, 2004 Share Posted May 13, 2004 <p>Yes you can through the Batch command in the Automate menu. <p>--ben<br><a href="http://www.marchal.com">marchal.com</a> Link to comment Share on other sites More sharing options...
jkantor Posted May 14, 2004 Author Share Posted May 14, 2004 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now