Open Music or iTunes

I'm running Catalina on one Mac and High Sierra on another and I share KM macros.

How do I have one or the other launch. I tried some things. I found Environmental Variables, but it doesn't see it. I found the variables via "set" and HOST was the only one that I could recognize that might work.

Is there an Action for if file or application exists or something similar. Or on error do the next action?

One approach is to use either an IF/THEN or Switch Action based on the macOS version. For an example, see: