Three days ago I decided to update my iMac 2020 Model from Monterey 12.3 to the last official Version (12.7.6 ??) and decided to stay with KM 10.2.
I don’t know what system of handling macros you others are using but I tend to have macros that give me access to others on demand - for example:
App „xx“ Launches
Enables Groups based on conditions which other apps are running
enables a basic set of Macros for this app I always need
if a Macro of the basic ones needs any other macro that it relies on it enables it on purpose- most of the time it disables it self after the work is done.
To be clear on how this is working - a group wirth setting = when Application x is running gets deactivated when I quit application x and so on …
Many many Enable/Disable Macro/Macro Group Actions to always make sure that I only have Macro Groups and Macros only available if I need them as a second layer based on KM‘s Group architecture.
I wanted to make sure you - whoever is replying - gets all basics on how my setup should work after a fix …
Now - after three days of working with my updated MacOS with many hours of getting or not getting hand on my macros that I need on a specific purpose and troubleshooting what causes the issue I realized that it is the Enable/Disable Action that doesn’t work reliably
What can I do ? - I know it’s a little bit confusing on how my setup works /should work but I have a single Macro Library with thousands of Macros for working with 2 to 4 Macs and all OS‘s from 10.13 up to 13.x and never had any issues so far on this setup …
There is no way for me to rebuild this all from scratch so please help
Ensure that your Keyboard Maestro preference folder and all of its contents have appropriate permissions and ownership. Sometimes migrations can mess up such things.
The Enable/Disable macro action is unusual in that it is about the old time that the Keyboard Maestro Engine can affect the macros (normally only the editor can make changes to the macros). Since the Keyboard Maestro Engine cannot write to the macros file itself, there is a separate Keyboard Maestro Enable Overrides file that contains the information about such changes. My guess would be that the Keyboard Maestro Engine either cannot create the file or cannot modify it which would speak to an ownership/permission problem, which may well have other consequences if it applies to the folder itself or other files in that folder.
Since I never had an issue like this since I bought Version 8 a few years ago and never had an issue like this wich any other Application I want to make sure I understand you correctly.
When you speak of owner permissions - do you mean that I have to check for my self as a owner ?! Am I right or am I missing something ?!
I’ve really read a lot about permissions in the past but I never had any type of issues they might come with them … so in this particular case I really need all information to get this fixed.
tells me that every thing looks absolutely ok, because I have Read and write access -rw- and it was changed at 08:34 - the time I closed the Keyboard Maestro editor just before I checked everything in the Terminal
for the case I could miss anything relevant I've included the full output of the terminal...
let me know if you think there might be an issue I cannot see...
Click on the action, and click the Try button at the bottom of the editor window.
Does that work? Does the macro get disabled? If so, repeat clicking on the action and trying it, and verify that the macro gets toggled enable each time.
If that doesn't work, then something very odd is going on.
If that does work, then maybe there is some different issue going on, and you'll need to do some similar tests with two macros: One macro that has the Status Menu trigger so you can see whether it is active in the Keyboard Maestro status menu, and another macro that toggles the enable of the first macro (you can also give it a status menu trigger). Make sure they are both in the Global Macro Group.
I've closed KM and quit KM Engine and deleted the Overrides File
then I left the Application Support folder open to see what's going on while following further your guide
created the very First Macro (in the Global Macro Group) with the Toggle Macro Action linked to this Macro leaving the Macro enabled
after Pressing the Try Button of the editor window a new Overrides File was created and the Macro was disabled
after pressing the Try Button again the Macro was enabled again but in the Folder the Overrides File still existed
I just duplicated the Macro and gave it a Status Manu Trigger and left it enabled checking that it shows up in the States Manu - every thing fine - it was true
I copied this Macro as Set Enable Macro Action and created the third one pasting the action in and set the Action option to toggle and repeated trying the toggle of the Second Macro to disappear and then reappear in the Status Menu - every thing worked fine, too
But there was still the overrides File in the Application Support folder unchanged
Then I went one thing further and closed KM and quit KM Engine again to delete this file again and restarted Keyboard Maestro
I selected the Toggle Action in Macro Three to repeated toggle the Second Macro (the one with the Status Menu Trigger) Disable and
A new overrides File was created
Again one step ahead and closing every thing again, deleting the file and reopen KM
Created a Status Menu Trigger for the Macro Three and triggered this Macro from the Status Menu to toggle enable on Macro Two because I left it disabled beforehand
A New Overrides File was created
I then created a Folder Trigger based Macro and repeated The the role test without leaving the Folder open and every thing was the same I was prompted for the exact amount of times and in the same context foe the appearance of the Overrides File and the File was kept in the folder unchanged.
I hope this gives you an idea of what maybe goes wrong.... If I am right and this File should only exist between the quit and the relaunch ok KM's Editor and or Keyboard Maestro Engine - then I am stumped here...
I thought I’ve written down everything down but that seems to be not the case here …
I am sorry - I believe that my thoughts were somewhere else while I was making these tests
The behavior was as it should - every macro got enabled when it was disabled and disabled when enabled
I don’t really know … I tend to not using my setup until I am really sure that there are no issues remaining….
What I can do is stepping through my Background Macros and reenable them in the editor but this is a process that can take some time as well as integrate some logging to them which I then can try to compare to the engine log file.
What I definitely can say is that I haven’t found out about any other issues, yet.
Give me some days to get my setup back up - then I can tell you more.
OK, at this point, I think if it turns out you are still having issues enabling and disabling macros that the issue might be in your macros and your control logic, so that may be something you have to look at carefully (perhaps using the Log action to be explicit about what it going on).
Because of the issues I had I disabled the Action combinations that contain the Enable/Disable Action and replaced them temporarily with combinations that doesn’t contain them and enabled all macros and groups.
I’ve started to reenable my conditional working setup a few hours ago and including some logging using the Log Action. We‘ll see what happens when I am going to start using it all back up again. Will give you feedback on this.
I’ve reenabled my setup like I want it to be for the most of my Macros and also added logging…
Everything works fine now … no more issues.
Trashing the Overrides File was the thing I had to do in this case.
Since this reply reflects that the issue was solved the most I‘ll mark this as the solution.
By the way - Is there any chance to create a macro that hits my attention if the Overrides File is not empty again ?!
I would like to create a macro that maybe takes a copy, Scans this copy and runs a separate application or script which then will quit KM Engine and the editor, trashing the Overrides File, and relaunches Keyboard Maestro and checks the newly created File whether it is empty or not.
I really would not bother. I've never heard of this happening before (and I'm not 100% convinced it was the cause anyway). Assuming it did happen, almost certainly the cause would be some sort of migration issue, not something that is likely to ever happen again.
What ever really caused the issue - I just have to thank you for your support on this.
Thank you
Because I want to avoid any other things to happen I decided to export all my Macros in the next days and also make a backup of everything else that is absolutely necessary needed and then I start putting back everything together starting with a fresh copy of Keyboard Maestro 10.2 until there is everything like it needs to be and then reenable KM Sync over Dropbox.
Since the SSD of my 13 inch MacBook Pro mid 2010 recently died after nearly 10 years I only have my 27 inch iMac 2020 which makes it less frustrating to build everything up from scratch.
Edit:
Please also note that I do this because it is the only Installation of KM 10.2 since the update to this version … I’ve always installed a os update without a clean install for more than two years…