Trigger to run "At date" -- not "At time"

Saw a thread sllightly similar to this, but not sure asking the same thing.

Is there no trigger for dated events?
I just want to open a file (a Numbers spreadsheet) on the 25th of each month.

Is the method to run a daily triggered macro, with some kind of if X = 25 then filter?

When on the 25th do you want to run the macro? That determines what trigger to use.

Eg:

  • Trigger at 8am every day
  • If DAY() = 25 Then
    • Do stuff

Sorry Peter, I’m a newb… where are you accessing the IF mechanism?

Hey Russell,

A is Insert Action by Name.

Try bringing it up and typing “if”.

Also look in the Flow Control section of the Action Inspector (Show Actions K).

(You must be in a macro that is enabled for editing for these to work.)

Keep in mind that the search field in the Help menu will find menu items in applications.

You can also go to the wiki and type “if” into the search field.

https://wiki.keyboardmaestro.com/Home_Page

-Chris

Chris,

Thank you, I wasn't looking where I should have, thought date would be found in triggers.

So, cobbled this together:

but as you can see, I'm phrasing something wrong... (today is day 30, but KM doesn't see DAY is 30 as true.

Can you see where I'm going wrong?

Hey Russell,

Yep.

You've got the general idea, but you're mistaking a function for a variable. Getting a handle on the ins and outs of variables, functions, text-tokens, calculations, and other bits takes a while, so don't let this bother you.

In the Keyboard Maestro Editor go to Menu ▹ Edit ▹ Insert Function ▹ Date.

Then hold down the key, and you'll see it transform into help items.

Select the one for DAY and have a look at the wiki page.

Below is an example of what you're trying to do.

-Chris


Time Trigger → IF DAY = 30.kmmacros (3.1 KB)

1 Like

Good show…

That’s what I was after.

Nice wiki, by the way.

Mouth is watering just looking at the Control Flow Actions page…

1 Like