I need to make sure that a specific application is only running on one of my computers. So when the app launches, I need to quit it on my other computer. I thought about implementing that by abusing dropbox as a message queue system. When the app starts, I create a file with the machine name and then have a macro that executes when that file exists and terminate the app. If anyone has a better idea, I would be happy for suggestions.
However that made me think, wouldn’t built in “remote actions”, that trigger something on another computer, be a great feature for future version? You could also just use the macro syncing feature to send the command to the other machines.
You're on the right track with the dropbox preference file sync. I've got a somewhat monkey'd out way to sync variables which would get you close to the right place, too. But automating a way to set that macro to set a different variable isn't trivial.
I manually edit the action that sets the variables. When the action syncs
and the other computers are logged in, they’ll execute the action. That’s
the challenge with automating it - you can’t automate Keyboard Maestro
macro creation. (Ironically enough)
Only ways I know to do that would be either scripting via the UX or messing with the XML of the macros. Is there a simpler way you know of, or is that it?