Thought i would drop one of my favorite macros here for healing, works very well, only problem is your approaching 256 char limit, here it is
/script if (UnitName("target") ~=nil and UnitIsFriend("player","target")) then CastSpellByName("Heal(Rank 1)") SendChatMessage("Incoming Heal to %T", "Party") else TargetUnit("player") CastSpellByName("Heal(Rank 1)") TargetLastEnemy(); end
it basically heals an allied char if targetted or if you happen to have an enemy targeted it will heal you w/o losing your current target. Handy.
just open up your macro and copy paste it directly from here and change the spell to whatever you want and voila. Enjoy.
I also have a very nice macro that allows you to hot swap 2 hander to 1 hand /shield and vice versa no matter the location of these items in your pack
let me know if you want that.