INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How to delete the last 13 chars of the filename? (and 2 more things)  (Read 1870 times)

cron0sRXR8

  • Galactic Citizen
  • ****
  • Posts: 296

Hi,

1) How to delete the last 13 chars of the filename?

2) How to delete the first 13 chars of the filename?

3) How to delete a pattern of the filename? for example...

I have this:

"jiangu 564 - XXX - 1090x768p.avi" ==> I want to delete only "XXX". How to do it??

żIs it possible do it the same 3 things for the "name" instead of "filename"?

I want do it in batch mode, of course.

Thank you!

Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: How to delete the last 13 chars of the filename? (and 2 more things)
« Reply #1 on: September 06, 2014, 11:41:06 am »

Easiest way is probably to clean up the [name] field, then use the rename, move and copy tool to rename the file(s), though you can perform the same actions on both fields.

1 and 2 first...

Select all files you wish to work with.
Open the tag window
"Name" will show "Varies", click to edit this...
Enter the following, including the "=" sign...
=removeright([name],13)
press enter and the last thirteen characters will be removed from the name.
=removeleft([name],13) will strip the first thirteen characters away.

To perform the same action on the filename, use =removeright([filename],13)

and 3...
To remove only XXX, use =replace([name],XXX)

-marko

cron0sRXR8

  • Galactic Citizen
  • ****
  • Posts: 296
Re: How to delete the last 13 chars of the filename? (and 2 more things)
« Reply #2 on: September 06, 2014, 12:06:46 pm »

Easiest way is probably to clean up the [name] field, then use the rename, move and copy tool to rename the file(s), though you can perform the same actions on both fields.

1 and 2 first...

Select all files you wish to work with.
Open the tag window
"Name" will show "Varies", click to edit this...
Enter the following, including the "=" sign...
=removeright([name],13)
press enter and the last thirteen characters will be removed from the name.
=removeleft([name],13) will strip the first thirteen characters away.

To perform the same action on the filename, use =removeright([filename],13)

and 3...
To remove only XXX, use =replace([name],XXX)

-marko

Thank you very much marko. Works very fine.

Please, one more thing.

About the function of replace. Is it possible "replace" XXX with YYY? what is the code? =replace([name],XXX,YYY) ?


On the other hand... I want get data of the name for to record in various tags.

I have this serie in the tag of NAME (or FILENAME):

"a-rj212b three teasing (PART B)"
"a-rj712a three jimi (PART A)"
"a-rj712c 4 mac jimi (PART A)"

I want this TAGS:

Name: three teasing (PART B)
Episode: 212b

Name: three jimi (PART A)
Episode: 712a

Name: 4 mac jimi
Episode: 712c

How to do it???

This is the code of the mask i think: a-rj[Episode] [Name]

But how to apply it for get the final result?

thank you!!!
Logged

cron0sRXR8

  • Galactic Citizen
  • ****
  • Posts: 296
Re: How to delete the last 13 chars of the filename? (and 2 more things)
« Reply #3 on: September 06, 2014, 12:38:40 pm »

How To Put In Capital The First Letter Of The Phrase?

 ;D
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: How to delete the last 13 chars of the filename? (and 2 more things)
« Reply #4 on: September 08, 2014, 11:57:05 pm »

Thank you very much marko. Works very fine.
You're welcome.

Please, one more thing.

About the function of replace. Is it possible "replace" XXX with YYY? what is the code? =replace([name],XXX,YYY) ?
Exactly that, yes. It always uses case sensitivity.

This page will give a good grounding/reference to using these functions.
There is also a "RemoveCharacters" function you might find useful.

On the other hand... I want get data of the name for to record in various tags.

I have this serie in the tag of NAME (or FILENAME):

"a-rj212b three teasing (PART B)"
"a-rj712a three jimi (PART A)"
"a-rj712c 4 mac jimi (PART A)"

I want this TAGS:

Name: three teasing (PART B)
Episode: 212b

Name: three jimi (PART A)
Episode: 712a

Name: 4 mac jimi
Episode: 712c

How to do it???

This is the code of the mask i think: a-rj[Episode] [Name]

But how to apply it for get the final result?
You have the mask correct. To apply it, use the "Fill properties from filename" tool (make file selection, right click, Library tools, Fill properties from filename).
Use the "Template" option, on filename only.

-marko
Pages: [1]   Go Up