Append Comment to Title


#1

Because my Treo 650's MP3 player (pTunes) does not display the Comment field, I need to append the Title of some of my MP3's (in a set of directories) so that the new Title field contains

Comment - Title

How do I do this?

Thanks.
Aloke


#2

Please read the FAQs. :slight_smile:

%comment% - %title% is the formatstring then.


#3

Thank you.

It wasn't clear to me if the action was to be a "Format Value" or "Replace" or "Replace with Regular Expression".

Using Format Value seems to have worked.

Aloke
PS: What an awesome, powerful program this is!!


#4

I have a follow-up question:

How do I reverse this action?

Say, sometime in the future, I want to get back to the original content of the Title field. How do I do that when the current content of the Title field is actually

%comment% - %title%

How do I remove the "%comment% - " part of the Title field content?

Thanks.
Aloke


#5

Create the following action:

Action #1:
Action type: Replace with regular expressions
Field: TITLE
Regular expression: ^.* -
Replace matches with:

[ ] case-sensitive comparison

Edit: In the regular expression, there is also a blank after the dash: "^.* - " (without quotation marks).


#6

Thank you.

Aloke


#7

Hi,

How do I delete the string before the first (going from left to right) appearance of " - " only?

Sometimes my Title has a " - " (no "'s in the title) in it from before. Adding the Comment field to it results in multiple instances of " - " in the Title. The above expression removes everything before the last " - ", not the first " - ".

Thanks.
Aloke


#8

Does this work:

Action #1:
Action type: Replace with regular expressions
Field: TITLE
Regular expression: ^(.) - (.)
Replace matches with: $2

[ ] case-sensitive comparison

#9

Instead of "^.* - " use "^.*? - "


#10

Sebastian: the "^(.) - (.)" -> "$2" did not work.

Dano: "^.*? - " -> "" worked !!

Thanks to all for the help.

Aloke