RetouchPRO

Go Back   RetouchPRO > Tools > Software > Photoshop Scripting

Notices

Photoshop Scripting Learning and sharing for all platforms

Reply
 
LinkBack Thread Tools
  #1  
Old 02-16-2005, 02:08 PM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 5,690
Need: Script to traverse folders + allow file renaming

Suppose I wanted to do in a script the functional equivalent of File > Automate > Batch...

a. Source: Use all subfolders
b. Destination: Save and close

...plus

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"

Open Top_level_folder;
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
* compression=10
* If duplicate, save over the top of it.

Close file

End do;

= = = = = = = = =

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.

PS7 preferred.

CS optional since I'll be a CS2 user someday.

Any takers?

~Danny~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #2  
Old 07-09-2005, 01:10 AM
Senior Member
 
Join Date: Apr 2004
Location: Seattle
Posts: 127
Hey Danny,

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".
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #3  
Old 07-09-2005, 01:18 AM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 5,690
Hi, Robert:

That gives me a reason to check out the new edition. Thanks for the tip.

~Danny~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gary - anybody - help please? 1STLITE Hardware 78 02-25-2007 03:08 AM
Impressionist plugin: Troubleshooting Cheryl H Photo-Art Resources 26 04-02-2006 09:43 AM
Resizing images for RetouchPRO jeaniesa Photo Retouching 18 09-26-2005 01:20 AM
Script to take layer comps to files but with ability to change size of file creeduk Photoshop Scripting 1 06-23-2005 05:38 PM
open the file browser by script? babedieboe Photoshop Scripting 4 01-13-2005 10:29 AM


All times are GMT -6. The time now is 01:32 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2008 Doug Nelson. All Rights Reserved




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51