View previous topic :: View next topic |
Author |
Message |
osieben
Joined: 19 Aug 2009 Posts: 2
|
Posted: Fri Oct 30, 2009 5:08 pm Post subject: Moving Bunch of loose files to a folder |
|
|
Following challenge for PFrank:
I have one directory full of files of various(!) types.
There are groups of files identify-able by an id, but with different naming structures (honestly a mess).
Each group has at least one (Master-)MP3 file with properly tagged data.
Rough example:
Code: | audit1234a.mp3 (with title tag: "Audition 09.03 John Doe")
script1234.pdf
1234edit.mp3
annotat1234.txt
audit2345.mp3 (with title tag: "Audition 09.03 Mary Jane")
... |
As a result I'd like to have:
Code: | /1234 - Audition 09.03 John Doe/
audit1234a.mp3 (with title tag: "Audition 09.03 John Doe")
script1234.pdf
edit1234.mp3
annotat1234.txt
/2345 - Audition 09.03 Mary Jane/
audit2345.mp3 |
In fact I can manage to move the master-mp3 with tag into the proper folder with PFrank accessing the MP3 tag information, but I do not know how to do so with moving all associated files to that folder.
I could imagine something like storing the targetfolder for all renaming lines like a variable, but I do not know if this is possible, the correct way or if this is even possible with PFrank.
THanks |
|
Back to top |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Sat Oct 31, 2009 4:20 am Post subject: |
|
|
Hi,
PFrank can't do everything you want unless you create a plugin.
An alternative to what you proposed could be to group all the same-numbered files into the same folder.
eg. put script1234.pdf, 1234edit.mp3, etc into a folder called 1234.
This can be done with the following entries in the custom renaming creator (don't copy the single quotes):
Row: 1
Search: '(?B)(.*)([0-9]{4,4})(.*)'
Replace: '../\2/\1\2\3'
The only thing left would be to rename the xxxx folders to names based on the title tag information contained in the auditxxxx.mp3 files.
A plugin should be able to do that fairly easily.
To make the plugin less complicated, you could, as part of the scan above, also rename the auditxxxx file to something like:
(title tag) auditxxx.mp3
Then the plugin would be able to easily extract the title tag from within the brackets (otherwise the plugin would have to extract the title from the mp3 tag which is harder), use it to rename the parent folder, and then remove the bracketed title tag from the mp3 file name.
Hope that helps.
Peter.
Last edited by admin on Sat Oct 31, 2009 7:45 pm; edited 1 time in total |
|
Back to top |
|
 |
osieben
Joined: 19 Aug 2009 Posts: 2
|
Posted: Sat Oct 31, 2009 11:00 am Post subject: |
|
|
Hi Peter,
I often use PFrank (great tool) and I am quite addicted to RegExp aswell
So I get you right, that it is not possible without a plug-in just to rename the parent folder, or? In this case I have firstly to learn about the PFrank Plugins. But that'll do fine.
Cheers,
Oliver |
|
Back to top |
|
 |
|