Page 1 of 1

Is it possible we have a {Filename without numbers or symbols } label?

Posted: Sun Sep 28, 2025 4:18 am
by easyart
I have been using MP for years. This is such a great software. Thank you so much for your great job.

Recently I'm using the 'bulk' function to add file name to images. Some of my images' filenames look like this

ABC (1).jpg
ABC (2).jpg
ABC (3).jpg
ABC (4).jpg
ABC (5).jpg
ABC (6).jpg
...

For these 6 files, I only want them to show ABC on the pictures. But obviously when I use {filename} now they will show ABC(1), ABC(2)…

It is great to have achieved this, and I am very grateful. But still wondering if there is a way that I have not thought of to make it show only ABC.

Or, if it is not possible at present, is it possible that we can add a version of {filename} in the future that removes the symbols and numbers?

Thank you for reading. Wish you have a nice day!

Re: Is it possible we have a {Filename without numbers or symbols } label?

Posted: Sun Sep 28, 2025 2:01 pm
by Franky
Will you need a suffix to differentiate them ?
They can't all be called ABC.

Re: Is it possible we have a {Filename without numbers or symbols } label?

Posted: Tue Sep 30, 2025 1:20 am
by easyart
Franky wrote: Sun Sep 28, 2025 2:01 pm Will you need a suffix to differentiate them ?
They can't all be called ABC.
Thank you for your reply.

Obviously I didn't explain myself clearly.
I don't need to modify the actual file name.
Just want the text to remain as ABC when I use {filename} to add the file name( as text ) to the image.

Thank you again for your reply.

Re: Is it possible we have a {Filename without numbers or symbols } label?

Posted: Tue Sep 30, 2025 4:06 pm
by Franky
Sorry but I did not understand your request.
But to keep only the first letters of the name you can do this.
With this you only keep the first 3 letters
{Filename[-3]}

Re: Is it possible we have a {Filename without numbers or symbols } label?

Posted: Sat Oct 04, 2025 12:49 am
by easyart
Franky wrote: Tue Sep 30, 2025 4:06 pm Sorry but I did not understand your request.
But to keep only the first letters of the name you can do this.
With this you only keep the first 3 letters
{Filename[-3]}
Thank you very much, this is very helpful.
Although my file names are of different lengths,
they look like

Code: Select all

ABC(1).jpg
ABC(2).jpg
ABC(3).jpg
ABC(4).jpg
ABC(5).jpg
...
ABCDEFGHI(1).jpg
ABCDEFGHI(2).jpg
ABCDEFGHI(3).jpg
ABCDEFGHI(4).jpg
...
ABCDEFGHIJKLMOPQ(1).jpg
ABCDEFGHIJKLMOPQ(2).jpg
ABCDEFGHIJKLMOPQ(3).jpg
ABCDEFGHIJKLMOPQ(4).jpg
...
With your help, I can now do it separately in batches.

Code: Select all

{Filename[-3]}
{Filename[-9]}
{Filename[-16]}

It is already much faster.

Thank you very much!