How do I do a macro that only works whilst in a particular application

This is probably a really basic question, but I can't figure it out.

How do I specify that a particular keystroke macro will only work when in a specific application.

For example, I have the keys alt-cmd-p set to do something in one of my applications, but I don't want that keystroke combination do the same thing if I am not in that application.

Thanks for any help!

When you make a Macro Group in the left column you can set "Available in these applications" in the right column.

This way you can have groups of macros that only fire in specific applications.


@Pip, @troy nailed it.

For more info, see: