Renamer - Random-Text/Integer-Variable?

Started by Darius1968, June 24, 2021, 12:34:45 PM

Previous topic - Next topic

Darius1968

I know that variables - which can be user-defined - can be used in the renamer.  My question is whether it's possible to have that variable be incremented by a random x-char(s)-length integer or text-string, instead of just incrementing by 1 digit? 

Mario

No.

If you really need such a string, maybe experiment with substr with a start and/or length set from the current time (seconds) and a long string of random characters (length >= 60), likle
SFDJSDLKFJLSDKFJSLDKJFLSKDFJLKSDJLFKJSDKLFJPOPWEUICÖLSDMFLKSNMDLKHJNSSDPFKSDÖFKJSDLK
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

sinus

Quote from: Mario on June 24, 2021, 12:54:08 PM
No.

If you really need such a string, maybe experiment with substr with a start and/or length set from the current time (seconds) and a long string of random characters (length >= 60), likle
SFDJSDLKFJLSDKFJSLDKJFLSKDFJLKSDJLFKJSDKLFJPOPWEUICÖLSDMFLKSNMDLKHJNSSDPFKSDÖFKJSDLK

A clever idea!  :)
I do not know, for what Darius this want, but this idea, where to start, is very clever.
Best wishes from Switzerland! :-)
Markus

Mario

That's an old programming trick. Very fast, and easy to implement. Should work nicely with IMatch variables, too.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

sinus

Quote from: Mario on June 24, 2021, 06:11:34 PM
That's an old programming trick. Very fast, and easy to implement. Should work nicely with IMatch variables, too.

A bit old here, but Mario, I wanted only to say, you ideas and tricks and new variables helps often a lot.
I used your random-trick (with actual time) to put randomly some photos in D&P and further I used your timediff-variable to create some interesting time-data.
Added one page, where you can see this.

Thanks for you hard work always!
Best wishes from Switzerland! :-)
Markus

Mario

Very neat!

The new duration variable function in the next release will make this easier.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook