This is a fairly simple one, but I can see myself using it repeatedly.
There is a Unix command called at
which is supposed to run whatever command you want at a specific time (hence the name).
For reasons which I do not understand, at
no longer works in recent versions of macOS. I've tried various suggestions that I found across the Internet, but I did not succeed. The time spent exceeded the usefulness of the tool (at
was never a great tool, it was just an easy one.)
Today I had need of such functionality again, and decided I wanted to try to use Keyboard Maestro to fix it.
In my particular use-case, I needed to open a specific URL for a Zoom¹ meeting at a specific time so I wouldn't be late for the meeting, but your needs might be very different. The point of this macro isn't actually the actions, but the configuration.
¹ (Yes, I know… but I wasn't the one who chose the tool.)
How to run a Keyboard Maestro macro just once…
While Keyboard Maestro does not have this functionality directly it is easy enough to “fake it” by creating a macro that will run at a specific time (say, 9:59am for a 10am meeting), and then have the last action of that macro to be to disable the macro, so it won't run again tomorrow at 9:59 a.m.
I named it “1-Time Action” instead of "Open Zoom URL at a specific time” because the next time I want to use this, I'll just search for ”1-Time Action” and edit the actions accordingly.
Oh, and I also added it to the Status Menu, in case I decided that I wanted to run it manually before the assigned time.
My action includes an "Execute Shell Script" action, but you can replace that with whatever you want.
Here's the macro (it's disabled by default, for hopefully-obvious reasons):
1-Time Action.kmmacros (3.9 KB)
Here is all it does:
I hope this serves as a good example that Keyboard Maestro macros do not have to be complex to be useful, but just something simple that you can use a number of times is still a helpful thing to have!