|Photoshop Scripting Learning and sharing for all platforms|
| ||Thread Tools|
Need: Script to traverse folders + allow file renaming
a. Source: Use all subfolders
b. Destination: Save and close
c. engage the File Renaming option to change the processed file name
You can do a) and b) within Batch, but not c), too.
- - - - - - - -
In real ugly pseudocode, something like...
- - - - - - - -
Top_level_folder = "\My Documents"
Number_of_files_read = 0;
Do until all files processed;
Open file (traverse multiple, nested folders; read all files taking into consideration some folders may be empty)
Number_of_files_read = Number_of_files_read + 1
\\Do something to the file [I can do this via called action]
New_filename = original_filename + "-" + Number_of_files_read + "-thumbnail"
Save as New_filename
* in the folder from which the file was read
* file format = .jpg
* If duplicate, save over the top of it.
= = = = = = = = =
Don't need a GUI or input dialog to specify high level folder. Ditto for new file name constants. I can tweek the .js code to do that.
CS optional since I'll be a CS2 user someday.
I'm pretty sure what you want is described in the last chapter of Fraser's ACR w/ CS2. That is if I came close to following your "pseudocode".
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Impressionist plugin: Troubleshooting||Cheryl H||Photo-Art Resources||34||06-15-2009 10:13 PM|
|Gary - anybody - help please?||1STLITE||Hardware||78||02-25-2007 02:08 AM|
|Resizing images for RetouchPRO||jeaniesa||Photo Retouching||18||09-26-2005 12:20 AM|
|Script to take layer comps to files but with ability to change size of file||creeduk||Photoshop Scripting||1||06-23-2005 04:38 PM|
|open the file browser by script?||babedieboe||Photoshop Scripting||4||01-13-2005 09:29 AM|