help with target specific macro

i am trying to make a macro which will cast “heal” when targeting myself and “flash heal” when targeting anyone else. please let me know if this is possible.

what i have been messing around with is
/cast [self] flash heal
/cast [help] heal

just trying to find the right combinations of modifiers to make it only case a certain spell on myself

Could you not use:

/castsequence [nochanneling,@player] Heal
/castsequence [nochanneling] reset=target !Flash heal

Should work i think.