I like Priestly Endeavors’ way of setting focus in his post Writing macros, a series of lessons (5 of…).
/focus [noexists,target=target][exists,dead,target=target][modifier:alt,target=target]
which (if I’m reading it correctly) translates into:
/focus **set focus target
[noexists,target=target] **If I don’t have a focus target, set focus to my current target
[exists,dead,target=target] **If I have a focus target, but it’s dead, set focus to my current target
[modifier:alt,target=target] ** If I press alt, set focus to my current target (dropping any previous focus target – nonexistent,dead or alive)
Now I need to figure out a way of working this into my hunter macros