View previous topic :: View next topic |
Author |
Message |
kc27
Joined: 23 May 2007 Posts: 9
|
Posted: Fri Jun 24, 2011 2:03 pm Post subject: Scripting to Save to Different Folders |
|
|
I have a folder that has files at the root level and three sub folders inside. I would like to rename all the files inside the folder and subfolder, and save them to different locations. For example.
version folder > save to version folder on server
log folder (subfolder of version) > save to log folder (subfolder of version) on server
pdf folder (subfolder of version) > save to pdf folder (subfolder of version) on server
thumbnail folder (subfolder of version) > save to thumbnail folder (subfolder of version) on server
All fo the file names in the version folder and the subfolders start with the same 5 numbers. It's those 5 numbers that I change with PFrank. Once they are changed I manually copy the renamed files to the respective folders on the server. Then I repeat the process, changing the 5 numbers in the originating files again to another set of 5 numbers, then copy those files to the server.
I'd like to eliminate the manual copying of the files after they are renamed. I don't have experience with python, but would give it a try if I at least know it is possible to create an action that gets PFrank to rename the files and save them to the server in the four folders.
Thanks in advance for any ideas on this. |
|
Back to top |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Sat Jun 25, 2011 1:04 am Post subject: |
|
|
Yes, renaming the files, and moving them to other folders is possible with a plugin. the destination folders could be fixed locations or could be determined based on the original folder path/name.
Peter. |
|
Back to top |
|
 |
kc27
Joined: 23 May 2007 Posts: 9
|
Posted: Sat Jun 25, 2011 1:23 am Post subject: |
|
|
Thanks, I'll give it a try and see if I can pull it off. The destination folders are fixed locations. Maybe that will simplify things. |
|
Back to top |
|
 |
|