Rename Macro for Screenshot

Can you make a renaming macro that monitors a folder?

I want to use this macro to manage the screenshot files, so I need the following actions:
Please insert the serial number after today's date. At that time, delete the original name completely.

For example:

test.jpg β†’ 2023-02-01-01.jpg

If possible, can the serial number be reset when the date changes?

For example:

  • My computer specifications are as follows:
    • MBP 2011 13 M1
    • Monterey 6.2
    • KM Ver 10.2

I am waiting for your help.
Thank you so much!

Have you read this?

1 Like

For me it seems like a super super great study of English.

It's probably more important than making macros with Keyboard MaestroπŸ˜… Aside from jokes, I'll read it.

Thank you really so much!


It's simpler to use the time rather than a serialized number in the date-stamp.


Yes, easily.

1 Like

This task can be a little bit tricky.

It's a good idea in my opinion to change the location of your screenshot folder to something other than the Desktop.

Limit Add Folder.kmmacros (12.5 KB)
:warning:This macro loops so be very careful before using it.

I merged the macros you made before and created a new macro based on @noisneil advice.
There are two problems.

  1. The anti-duplication macro that you made doesn't work well.
  2. I didn't know how to insert the serial number and reset function.

Well... In the end I couldn't do anything :joy:
But I hope you understand only my hard work lol
Thank you very much!

As far as I can see you've made this way too complicated.

What exactly is your objective?

If all you want to do is create a screenshot with a date-stamp serialized name then something like this will accomplish that:

Screenshot – Named with Date-Stamp v1.00.kmmacros (6.0 KB)

Macro Image

Keyboard Maestro Export

No need to rename after the fact, because the macro itself names the screenshot when it's saved.

1 Like

Wow! That macro is what I was really looking for! Fantastic!!!

About my macro, Please forget about it. My lack of knowledge was just spinning around.
For me creating this macro was a great learning experience. Of course your work is great today.
Additionally, I was able to understand the meaning of @noisneil quoted article through your macro.

Thank you both!