Exclude action from specific computer

I would like to sync my macros between computers, but I have some that trigger apps that are not in one of the computers. I would like to use the same keystrokes and have the macro just bypass the disabled action on the specific computer.

I know I can disable groups per computer, so I could create 2 groups, duplicate the macro in each, remove the action and disable the group on the appropriate computer. Thought it might be handy just to be able to disable macros/actions on a per computer basis.

Thanks.

Tony

Well, if it is that simple that affects only one Mac, I would just put the Action(s) that should NOT be executed for that Mac in a If Then Else action, something like this:

image

Thanks for that. I may try it, but it seems that the only problem is getting an error on the Mac that doesn't have the app, which I can put up with for now. It looks like the rest of the apps launch OK.

What is the error message?
If that Activate App is in a KM IF/THEN Action that prevents that Action, I don't see why an error would occur.

I don't know if error is the right term. It's an alert in notification center. The log entries are:


2019-10-24 08:15:51 Execute macro “2-Open Audio Editing Apps” from trigger The Global Macro Palette
2019-10-24 08:16:08 Activate Application cannot find application MP3 Trimmer
2019-10-24 08:16:08 Activate Application cannot find application MP3 Trimmer In macro “2-Open Audio Editing Apps” (while executing Activate MP3 Trimmer).2019-10-24 08:15:51 Execute macro “2-Open Audio Editing Apps” from trigger The Global Macro Palette
2019-10-24 08:16:08 Activate Application cannot find application MP3 Trimmer
2019-10-24 08:16:08 Activate Application cannot find application MP3 Trimmer In macro “2-Open Audio Editing Apps” (while executing Activate MP3 Trimmer).


"2-Open Audio Editing Apps" is a macro to open 4 apps I use to edit mp3 audio files. Only 3 of them are on one of the Macs and that's where the alert happens. Those 3 open OK.

Those entries look more like they are from the KM Engine Log, not the Mac Notification Center. I don't think these log entries will harm anything other than add clutter to the log file. But @peternlewis can confirm/correct, and maybe suggest a way to avoid.

They are. I sent them because I couldn't figure out how to get a screenshot of a notification center alert, and that's what's being passed to it from KM.

@peternlewis don't spend a lot of time on this. As I said earlier, it is at most a minor annoyance. If you run our of things to do in an update :wink: , you could consider adding a button in the action to "Do Not Run on This Computer".

Yes, the action is failing, and then potentially aborting the macro (depending on the action setting).

As for why it cannot find the application, that is harder to know. If the application is a Java application, that could be an issue.

You must have missed that part in the first post. The app is not on the computer that is giving alert.

OK, maybe you should post the actual Macro where you avoid the apps not on a specific Mac.

Here's my test Macro, which works fine.
==It Activates Photoshop only if run on other Macs.==
I do NOT have Photoshop installed on my Mac. I got this Action by downloading a Macro from the KM forum that used it.
I don't get any notification or KM Engine log entires when run on my Mac.

MACRO:   Avoiding Apps Not on This Mac [Example}

**Requires: KM 8.2.4+   macOS 10.11 (El Capitan)+**
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))

#### DOWNLOAD Macro File:
<a class="attachment" href="/uploads/default/original/3X/9/7/97baaae8201e521939a4839932c3d25336270d03.kmmacros">Avoiding Apps Not on This Mac [Example}.kmmacros</a>
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**


---


<img src="/uploads/default/original/3X/5/0/50f3a891c7679dfffb895f31981f5c0f7caae33f.png" width="555" height="875">