» Welcome Guest
[ Log In :: Register ]

 

[ Track this topic :: Email this topic :: Print this topic ]

Topic: Ignoring text in lists, Renaming/Tagging from list< Next Oldest | Next Newest >
robcallaghan
Board Newbie



Group: Members
Posts: 9
Joined: Aug. 2004
Posted: Aug. 14 2004,02:24

Hi,
This is probably a stupid question but i have searched for the answer for a few weeks now and can't seem to work it out.

I'm trying to tag some info from a large text document list.
An example of some of the text in the document is below:

13/08/2004 18:47:52 D:\ALL-95\03 Favours In The Beetroot Fields.mp3 -4.5
13/08/2004 18:47:53 D:\ALL-95\04- Fighter.mp3 -4.5
13/08/2004 18:47:53 D:\ALL-95\16- Dirrty.mp3 -3.0
13/08/2004 18:47:54 D:\ALL-95\05 - Maggie's Farm.mp3 -3.0
13/08/2004 18:47:54 D:\ALL-95\02- Can't Hold Us Down.mp3 -3.0
13/08/2004 18:47:55 D:\ALL-95\T009My Nutmeg Phantasy feat Angie Stone & Mos Def.mp3 -3.0
13/08/2004 18:47:55 D:\ALL-95\03 Supply and Demand.mp3 -3.0
13/08/2004 18:47:56 D:\ALL-95\04 Somebody Told Me.mp3 -3.0
13/08/2004 18:47:56 D:\ALL-95\03- I Luv U.mp3 -3.0
13/08/2004 18:47:57 D:\ALL-95\07 Run.mp3 -3.0

All i want is the -3.0, -4.5 etc numbers to be tagged as track numbers (or file name, it doesn't matter i just want the info somewhere in the tag). I have used TRASH but there are a variable number of characters before the info i want. I thought i could try and tell the program to use the number after ".mp3" but i am having great difficulties doing this. I have tried various variations in the advanced field and looked through the help file/on-line database but can't work it out.

Looking at all the posts I think I'm quite a novice so sorry if this is a simple question. I'm sure there's a simple answer.

Hopefully in time I will be able to appreciate your program fully!

Any help would be gratefully appreciated.

Rob
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Aug. 14 2004,04:14

Using the "Tag from list" tool, the following template should work fine:

<TRASH>.mp3 <TargetField>

Where <TargetField> is the field where you want your numbers to be. The track number field may not be a good choice though, since there are some constraints on the legal contents of that field.

--------------
Software author and website owner
Back to top
Profile PM WEB 
robcallaghan
Board Newbie



Group: Members
Posts: 9
Joined: Aug. 2004
Posted: Aug. 14 2004,13:46

Thanks Magnus,

You are probably the most helpful person I have met on the internet.

One more question if you don't mind.

If I had a text list like this:

14/08/2004 12:28:29 D:\ALL-95\01 - For Lovers.mp3 1.5
14/08/2004 12:28:29 D:\ALL-95\01 - Lose Yourself .mp3 -1.5
14/08/2004 12:28:30 D:\ALL-95\01 - Strange And Beautiful (I'll Put A Spell On You) - Aqualung.mp3 3.0

and i had a file list  like this :

D:\ALL - No Clip 100\01 - For Lovers.mp3
D:\ALL - No Clip 100\01 - Left To My Own Devices - Pet Shop Boys.mp3
D:\ALL - No Clip 100\01 - Lose Yourself .mp3
D:\ALL - No Clip 100\01 - Strange And Beautiful (I'll Put A Spell On You) - Aqualung.mp3
D:\ALL - No Clip 100\01- Bittersweet Symphony.mp3
D:\ALL - No Clip 100\01- Bohemian Rhapsody.mp3


and i wanted to tag the info after ".mp3" but only if it corresponded to the correct track (ie. omit tagging for "Left To My Own Devices ", "Bittersweet Symphony" and "Bohemian Rhapsody") is that possible?

If I wanted to add a "0" in the tag box for the ones not included in the text list, is there a simple template for this.

And is it possible for the program to look for either ".mp3 and .MP3" at the same time.

Lots of questions, i'm sorry, but the answers probably very simple.

Many thanks for a great program which i will be registering.

Thanks alot,
Rob
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Aug. 14 2004,15:15

Quote
...and i wanted to tag the info after ".mp3" but only if it corresponded to the correct track (ie. omit tagging for "Left To My Own Devices ", "Bittersweet Symphony" and "Bohemian Rhapsody") is that possible?

If I understand you correctly, you want to specify the target file from the text file. This can be done with the fields "<Target file>", "<Target file AP>" and "<Target file RP>", e.g. like this in your case:

<TRASH> <TRASH> <Target file AP><TargetField:4>

In this case the ".mp3" will be part of the target file field, so it can't be used as a separator at the same time. That's why I'm using a fixed length field for the "TargetField" instead (which has the same meaning as in my previous post for that matter). I could also have used a multi-part field to get past this problem, like this:

<TRASH> <TRASH> <Target file AP-1[|.mp3]>.mp3 <TargetField>

(that one should give you something to think about ;))



Quote
If I wanted to add a "0" in the tag box for the ones not included in the text list, is there a simple template for this.

Simply use the mass set tool combined with the filter to write such zeroes to all files without a track number.


Quote
And is it possible for the program to look for either ".mp3 and .MP3" at the same time.

For all operations except list parsing, the file extensions are case insensitive, but in this case you'd have to do it in two separate sweeps (or do a simple find & replace in your text file before starting the processing).

--------------
Software author and website owner
Back to top
Profile PM WEB 
robcallaghan
Board Newbie



Group: Members
Posts: 9
Joined: Aug. 2004
Posted: Aug. 14 2004,17:04

Hi,
The details in the lists above were slightly wrong and i'm not sure if that was important with regards your answer. They should be from the same directory.

The Text List is for eg:

14/08/2004 14:45:49 D:\ALL-95\01 - For Lovers.mp3 1.5
14/08/2004 14:45:50 D:\ALL-95\01 - Lose Yourself .mp3 -1.5
14/08/2004 14:45:50 D:\ALL-95\01 - Strange And Beautiful (I'll Put A Spell On You) - Aqualung.mp3 3.0
14/08/2004 14:45:51 D:\ALL-95\01- Bohemian Rhapsody.mp3 3.0
14/08/2004 14:45:52 D:\ALL-95\01- Ebeneezer Goode (Beat Edit).mp3 3.0
14/08/2004 14:45:52 D:\ALL-95\01- Everybody's Free (To Wear Sunscreen) (Edit).mp3 1.5
14/08/2004 14:45:53 D:\ALL-95\01- Never Ever.mp3 1.5
14/08/2004 14:45:54 D:\ALL-95\01- Pump up the Jam.mp3 1.5
14/08/2004 14:45:54 D:\ALL-95\01- Radio Edit.mp3 1.5
14/08/2004 14:45:55 D:\ALL-95\01 Santa Cruz (You're Not That Far).mp3 -3.0
14/08/2004 14:45:55 D:\ALL-95\01- These Arms of Mine.mp3 3.0
14/08/2004 14:45:56 D:\ALL-95\01- Virtual Insanity.mp3 1.5

+200 more files.

The file list contains extra titles (marked with **)eg:

D:\ALL-95\
  =========
  01 - For Lovers.mp3                   3556 KB   14/08/2004 03:27:00 PM      a
  **01 - Left To My Own Devices - P...    4487 KB   14/08/2004 03:27:00 PM      a
  01 - Lose Yourself .mp3               5124 KB   14/08/2004 03:27:00 PM      a
  01 - Strange And Beautiful (I'l...    3547 KB   14/08/2004 03:27:00 PM      a
  **01- Bittersweet Symphony.mp3          5579 KB   14/08/2004 03:27:00 PM      a
  01- Bohemian Rhapsody.mp3             5476 KB   14/08/2004 03:27:00 PM      a
  01- Ebeneezer Goode (Beat Edit).mp3   3514 KB   14/08/2004 03:27:00 PM      a
  01- Everybody's Free (To Wear S...    4760 KB   14/08/2004 03:27:00 PM      a
  **01- Mulder and Scully.mp3             3923 KB   14/08/2004 03:27:00 PM      a
  01- Never Ever.mp3                    6009 KB   14/08/2004 03:27:00 PM      a
  **01- Peppermint Disco Mix.mp3          3631 KB   14/08/2004 03:27:00 PM      a
  01- Pump up the Jam.mp3               4942 KB   14/08/2004 03:27:00 PM      a
  01- Radio Edit.mp3                    3494 KB   14/08/2004 03:27:00 PM      a
  **01- Rise - Album Version.mp3          3530 KB   14/08/2004 03:27:00 PM      a
  01 Santa Cruz (You're Not That ...    3951 KB   14/08/2004 03:27:00 PM      a
  **01- That don't impress Me Much.mp3    3664 KB   14/08/2004 03:26:56 PM      a
  01- These Arms of Mine.mp3            2356 KB   14/08/2004 03:27:00 PM      a
  01- Virtual Insanity.mp3              5327 KB   14/08/2004

The numbers after .mp3 in the text list I would like tagged (to the comments field) to the corresponding files in the file list. Unfortunately when I use your file row format:

<TRASH> <TRASH> <Target file AP-1[|.mp3]>.mp3 <Comment>

it tags all the files in the file list in the same order as the text list irrespective of there name. In the example above I do not want the files marked with ** tagged at all and would like to just tag the files with the same name (so it would just skip "01 - Left To My Own Devices - P... " and "01- Bittersweet Symphony.mp3 etc".

As it is, it tags "01 - Left To My Own Devices - P... " with -1.5 which should go on "01 - Lose Yourself .mp3". "01 - Lose Yourself .mp3" then gets tagged with "3.0" which is supposed to go on " Strange And Beautiful (I'll Put A Spell On You) - Aqualung.mp3". It doesn't seem to look at the file name and work out the correct file name to tag. I'm sure it can but I'm finding it difficult to work out.

The other file row format
<TRASH> <TRASH> <Target file AP><TargetField:4>
doesn't seem to tag anything and it says file to be tagged doesn't exist.

The actual list i have consists of hundreds of files and doesn't have ** by the files not to be tagged (otherwise i may be able to filter, although i must confess i find this a bit confusing as well.).

I'm sure i'm just being dumb and there's a simple explanation.
I hope i have explained it adequately.
Kind Regards,
Rob
Back to top
Profile PM 
robcallaghan
Board Newbie



Group: Members
Posts: 9
Joined: Aug. 2004
Posted: Aug. 14 2004,17:11

Also when i look at custom file selection mode the order is different from the order in windows explorer mode. Is that a problem?
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Aug. 14 2004,21:33

I just tried it with your exact file list and file names, and the second template (i.e. "<TRASH> <TRASH> <Target file AP><Comment:4>") worked perfectly for me, are you sure you got everything correct?

The problem with first template (i.e. "<TRASH> <TRASH> <Target file AP-1[|.mp3]>.mp3 <Comment>") was a small bug though, which I have now fixed, so it will work in the next released version, sorry about that. :)

--------------
Software author and website owner
Back to top
Profile PM WEB 
robcallaghan
Board Newbie



Group: Members
Posts: 9
Joined: Aug. 2004
Posted: Aug. 14 2004,23:36

Thanks Magnus, i'm nearly there.

I have managed to get it working using <Target File> rather than <Target File AP> but it doesn't tag the 2 files with a negative number:

01 - Lose Yourself .mp3 -1.5
and
01- Santa Cruz (You're Not That Far).mp3 -3.0

It must be something to do with the "-" sign.

Is there any way round this?

Rob
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Aug. 14 2004,23:59

I can't imagine what the problem is, those files tagged perfectly for me too, and there is no reason that the minus sign should make any difference with the templates I've recommended. It is also very strange that it didn't work with the <Target file AP> field. My only guess is that there is some inconsistency between your details posted here and the actual details, or that you made some mistake while using my recommended templates. Both alternatives are quite unlikely though, as long as you've been using copy/paste...  :confused: Please make sure that there are no extra spaces or tabs in the beginning or and of the lines in the text list, since that could render our current templates incorrect. And you're still using the comment field, right? If you were trying to use the track number field, the earlier mentioned restrictions on field contents might mess up the ones with minus signs and such.

And you are using the latest version of Mp3/Tag Studio, right? (3.5 beta 7) Otherwise, please download this version and try it, it really should work, especially since I duplicated your exact conditions and had it working just fine over here. Very odd indeed.

--------------
Software author and website owner
Back to top
Profile PM WEB 
robcallaghan
Board Newbie



Group: Members
Posts: 9
Joined: Aug. 2004
Posted: Aug. 15 2004,00:20

I've got the up to date version.
I have just tried it with a different set of files as this time it ignored all the positive values (i'm not sure if that was because the first one it came to was "-" or because there were more positives in this list? Text list is below.


There is a tab between bits on the text list which i have marked with * (they don't seem to come out when you post on the forum). the gaps marked with a * are just one tab space only. maybe that's the problem as you mentioned??
I'va also attached my text file.

14/08/2004 23:05:26 H:\HELP\How I Learned to Love the Bootboys\01 The Rubettes.mp3 -1.5
14/08/2004 23:05:26 H:\HELP\How I Learned to Love the Bootboys\02 1967.mp3 1.5
14/08/2004 23:05:26 H:\HELP\How I Learned to Love the Bootboys\03 How I Learned to Love the Bootboys.mp3 -1.5
14/08/2004 23:05:26* H:\HELP\How I Learned to Love the Bootboys\04 Your Gang, Our Gang.mp3* -3.0
14/08/2004 23:05:27* H:\HELP\How I Learned to Love the Bootboys\05 Some Changes.mp3* -1.5
14/08/2004 23:05:27* H:\HELP\How I Learned to Love the Bootboys\07 Johnny and the Hurricanes.mp3* -1.5
14/08/2004 23:05:28* H:\HELP\How I Learned to Love the Bootboys\09 Asti Spumante.mp3* 1.5
14/08/2004 23:05:28* H:\HELP\How I Learned to Love the Bootboys\10 Sick of Hari Krisna.mp3* 1.5

thanks again,
rob
Back to top
Profile PM 
robcallaghan
Board Newbie



Group: Members
Posts: 9
Joined: Aug. 2004
Posted: Aug. 15 2004,00:24

not sure if you got the attahced text list which shows the tabs better (i didn't manage to mark all of them in above post!;).

thay're between the time and the H, and the .mp3 and the number.

Download attachment [ Text File ]
Number of downloads: 91
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Aug. 15 2004,00:39

Yes, the tabs are the problem in that case, the following template should work instead then:

Run this template first:

<TRASH>:<TRASH>:<TRASH:3><Target file AP><Comment:4>

and then this one right after:

<TRASH>:<TRASH>:<TRASH:3><Target file AP><Comment:5>

Then all the files should be correctly tagged.


PS.
I sorta think I've deserved that registration fee you're talking about above soon...   :p

--------------
Software author and website owner
Back to top
Profile PM WEB 
robcallaghan
Board Newbie



Group: Members
Posts: 9
Joined: Aug. 2004
Posted: Aug. 15 2004,01:56

You certainly do deserve the registration fee.
Many thanks for your help and prompt replies.
I only wish I understand what the templates mean exactly!!

By the way, when will the banner disappear? Do i get sent a new program file?

Regards,
Rob
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Aug. 15 2004,02:11

About understanding the templates, did you read the sections in the help file describing it? Hopefully that will make it all a bit more clear at least. :)

And about registration, yes, the banner will disappear, and all necessary information about acquiring a registered program will be sent to you by email after registering.

--------------
Software author and website owner
Back to top
Profile PM WEB 
robcallaghan
Board Newbie



Group: Members
Posts: 9
Joined: Aug. 2004
Posted: Aug. 15 2004,12:25

Thank-you. All emails have been recieved.

Can i just ask please, if i would like to run a tag from list (similar to above) but wanted the information added to the comment field, so that the information already in the comment field remains (and is not deleted) and the new information is added after it. Is this straightforward?

I'm sorry to ask all these questions. I have read your help files but find the whole concept a little bewildering to say the least.

Rob  :)
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Aug. 15 2004,12:55

You can't currently do that in one operation, but I would have imported the data to a separate tag field, and then combined it with the existing data into the correct tag field using the "Direct tag manipulation" tool, that will work just fine. And you do know that all such multi-part operations can be easily combined into a single macro (which can then be accessed with the click of a single button), right?

And thanks for registering, I appreciate it. :)

--------------
Software author and website owner
Back to top
Profile PM WEB 
15 replies since Aug. 14 2004,02:24 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]