Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (http://www3.telus.net/pfrank)
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is PFrank up to the task?

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



Joined: 04 May 2009
Posts: 4

PostPosted: Mon May 04, 2009 3:08 pm    Post subject: Is PFrank up to the task? Reply with quote

Hi all, I have this hdd media player which is configured so silly, that in order to utilize album art the picture file has to have the same name as the music file (except the extension). So now I wonder if itīs possible to achieve this with PFrank? For clarification here is an example:

a.wav
b.wav
c.wav
1.jpg

this would be the result:

a.wav
b.wav
c.wav
a.jpg
b.jpg
c.jpg

Thanks in advance!
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Tue May 05, 2009 4:10 am    Post subject: Reply with quote

Looks like you want to take one file (e.g. 1.jpg), create copies of it and then rename them based on the names of a group of other files (a.wav, b.wav, etc).

Of PFrank is up to the task but in this case you would need to write a plugin. The main reason is that you are wanting to create files as well as rename them ... PFrank only renames unless you use a plugin to add unique other functionality.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cochese



Joined: 04 May 2009
Posts: 4

PostPosted: Tue May 05, 2009 6:25 am    Post subject: Reply with quote

Thank you for the answer Peter. Good to hear that itīs possible to do this with PFrank, it really is a regular swiss army knife of renamers! If it isnīt to much trouble, could you give me hints on what the commands would look like? By the way, is a donation possible with paypal?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Tue May 05, 2009 3:19 pm    Post subject: Reply with quote

First I have to know what your folder structure is.
Are there separate folders for each group of wav files + the 1 jpg file? If so, then it should be pretty straight-forward to design a plugin.
If not, then let me know how all the files are arranged and how to associate the jpg files with the wav files (please provide a few examples of the associations).

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cochese



Joined: 04 May 2009
Posts: 4

PostPosted: Tue May 05, 2009 4:41 pm    Post subject: Reply with quote

Yes, each group of wav files (actually ripped cd albums) have their own folder. So I guess thatīs good news.
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Wed May 06, 2009 6:04 am    Post subject: Reply with quote

I forgot to answer your question regarding donations. Yes they are possible via paypal (check the web site or under the Help menu of PFrank) and always welcome as incentive to keep adding and maintaining the product.

The algorithm you would need is something like:

1)
Set up the custom renaming to rename files without changing them
eg. replace w with w, and j with j to pick up all the wav and jpg files.
2)
In the plugin, get list of all files. There is a function call for this - the list is alphabetically sorted - with full paths.
2a)
In a loop that reads all entries int the list:
get the folder name for the file and save in a todo list - make a note of the jpg found.
when the folder name changes:
if a jpg file is in the todo list, then duplicate it for as many times as there are wav files and give each new jpg file name it using the prefix from the wav file.
2b)
delete the original jpg file if desired
2c)
back to the top of the loop and start a new todo list.

There is a way to write results to the summary panel of the main window.

The plugin would have to be written in the python language as explained on the plugins web page. On that page are links to sample plugins.

Hope that helps.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cochese



Joined: 04 May 2009
Posts: 4

PostPosted: Thu May 07, 2009 8:29 am    Post subject: Reply with quote

Hi again Peter, and thanks for your input so far. Well, it seems Iīve bit off more than I can chew. I really wanted to try to write the plugin myself, but it has proven to be quite a daunting task because Iīve no programing experince. I really hate to bug you with this, but I would need some spoon-feeding in this matter. So if youīre kind enough to help me, Iīll promise to remember that when I make the donation. Wink

Anyway, I appreciate all your help so far.
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Fri May 08, 2009 3:33 pm    Post subject: Reply with quote

Hi,

Sorry but if you don't have any programming experience I would probably end up writing the plugin myself and I seriously don't have a lot of time right now. Possibly in a month or so but no promises. Maybe another forum member can help?

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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