This is exactly what I need, but what I experience is that this macro only cycles once then the character auto hunting starts and the macro never comes back.
This character is a healer, it does group heals as its' attack and this macro is to make it stop auto attacking and heal a specific character.