How to create an application specific macro

The macro itself can detect which application it is in and do different things. Generally this is not as good as using a Macro Group to limit the macro because it means the macro is now available everywhere so the macro cannot "do nothing" (it can perform no actions, but it will still swallow the hot key for example).

You can handle multiple applications using the Switch or Case action as described here: