KM will enable macro group on launch but won't disable on quit?

In Apple Numbers, some of my spreadsheets are for calculations, and some are for organizing stories. The spreadsheet for stories have a special set of macros for writing outlines in the cells. I want those macros (which are in a separate macro group) to be activated if I open a story spreadsheet, and then I want them to deactivate when I quit Numbers.

I set up a macro to check the title of the front window on launch for story, and then activate the macro group. It works perfectly.

I made a separate macro that deactivates the macro group whenever Numbers quits. This doesn’t work. The macro group stays active after Numbers has quit.

Any help appreciated.

If would help greatly if you could post the macros, at least the quit one.

-rob.

Use an Application trigger that watches for Numbers to quit. Here's a simple example that works on Sequoia:

Numbers Quits.kmmacros (2.1 KB)

1 Like

“Doesnt work”

Whenever a macro does nothing, use the Interactive Help, Something expected is not happening to determine why.

Most likely the macro is not firing, resolve that.

Alternatively, you've made a mistake with the action, resolve that.

Without seeing the macro group and macro configuration, it's hard to offer more than general advice.

Thanks, as always, for the quick and helpful responses.
I was using the wrong action. I needed to use Enable/Disable, rather than Activate/Deactivate. Once I used the correct action, it all worked fine.

1 Like