I was talking to Inar last night and mentioned that I have a couple of nice macros I use now and promised I'd put them up on the forum... here goes:
I never used /focus before but have found it very useful in instances recently (see the misdirection macro). Thus I use the following macro to incorporate setting focus into my Hunter's Mark button. If the target is an enemy it casts Hunter's Mark and if target it friendly it sets the focus.
#showtooltip Hunter's Mark /cast [harm] Hunter's Mark; /focus [help]
Putting focus on your main tank is great in instances when you want to be able to cast misdirection on him/her without having to change targets. For misdirection I use the following macro that casts misdirection on my focus (if I have one), or on my target if it's friendly or, finally, on my pet (if I have one).
While there are many pet handling addons out there I use a simple macro to control call/dismiss/revive/mend. I don't use it to feed (use autobar for that). If pet is dead and withing view it revives. If pet is not within view it revives if you press alt, otherwise it calls the pet. If the pet is alive and you press alt it dismisses the pet, otherwise it mends the pet.
I'm not sure if this is true, but it seems you can cast "Kill Command" when it really can't be used... i.e. when you and your pet don't have the same target. To avoid that I use this macro that will only cast KC if you have the same target.
/cast [exists,target=pettarget] Kill Command
I don't claim to have written these myself... they are all compiled from stuff I've found on other websites.