Hi,
I want to create a macro that will order some of my files based on their names. This macro doesn't seem to work. If there's any error I cannot see it (I am blind and it doesn't read with VoiceOver). My regex is correct according to regex101.com and GREP. I would be grateful for any help
Porządkowanie plików z zajęć.kmmacros (3.1 KB)
The "For Each" action puts a file path into local_i
but your regular expression is anchored to the start of the string, expecting a file name, so it will fail.
Try removing the ^
at the front of the pattern and, to completely safe, add a $
at the back so you anchor to the end of the string:
(\d{2})\.(\d{2})\.(\d{4})(\.mp3)?$
Thanks. Sorry for my stupidity lol
I am sorry for double posting. Now the folders are created but the files are not moved... WHat am I doing wrong?
Your "Move File" action has local_i
as the "source":
But this is a text field so you need to use a token so that the variable local_i
is evaluated rather than the action trying to use the literal text "local_i". So replace what you have in there with %Variable%local_i%
:
Works like a clock,
thank you Master.