Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (***NEW HOME PAGE*** "http://pfrank.atwebpages.com")
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Moving Bunch of loose files to a folder

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> General Support
View previous topic :: View next topic  
Author Message
osieben



Joined: 19 Aug 2009
Posts: 2

PostPosted: Fri Oct 30, 2009 5:08 pm    Post subject: Moving Bunch of loose files to a folder Reply with quote

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
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Sat Oct 31, 2009 4:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
osieben



Joined: 19 Aug 2009
Posts: 2

PostPosted: Sat Oct 31, 2009 11:00 am    Post subject: Reply with quote

Hi Peter,

I often use PFrank (great tool) and I am quite addicted to RegExp aswell Wink

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> General Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com