Topic: Change sequence number to letter
Hello,
Is it possible to change the command so instead of 001 002 etc at the end of a filename, you get A B etc? Thanks very much for any help.
You are not logged in. Please login or register.
Scarabée Software: Forum → How to ... → Change sequence number to letter
Hello,
Is it possible to change the command so instead of 001 002 etc at the end of a filename, you get A B etc? Thanks very much for any help.
Hello,
I mainly see two different solutions to this problem.
1) Chain replacement modifiers
The idea is here to replace the selection number with the character sequence you expect.
For example, with an expression like:
File_%n("001","A")("002","B")("003","C")("004","D")("005","E")("006","F")("007","G")("008","H")("009","I")("010","J").%e
2) Text file lines
The %T variable is quite powerful and allows to extract the "selection number"th line of a text file.
For example, if you create the text file: c:\sr_num.txt containing the lines:
A
B
C
D
E
F
G
H
I
J
The expression: File_%T{"c:\\sr_num.txt"}.%e
should do the trick. (Note that the double '\' is not a typo)
Of course the text file will need to have as much lines as the number of files you want to rename.
You can also do "trickier" by using the array extraction modifier.
That way, you can use different numbering patterns. For example if the text file contains:
A - a - I - one
B - b - II - two
C - c - III - three
D - d - IV - four
E - e - V - five
F - f - VI - six
G - g - VII - seven
H - h - VIII - eight
I - i - IX - nine
J - j - X - ten
You can use the following expression:
File_%T{"c:\\sr_num.txt"}[1].%e : to get uppercase letters
File_%T{"c:\\sr_num.txt"}[2].%e : to get lowercase letters
File_%T{"c:\\sr_num.txt"}[3].%e : to get roman numerals
File_%T{"c:\\sr_num.txt"}[4].%e : to get text numbering
Hoping this will help.
Thanks, Remi. That works like a charm. My client will be very happy.
Scarabée Software: Forum → How to ... → Change sequence number to letter
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.