Macro to target partner and dispel?

What's the most basic of macros to target one of my team mates and dispel them? Say their name is "Fuzz", for the example's sake.

And is it possible to, say, have that line repeated twice in a macro, once with my 2s partner's name, and once with the pally from my 5's name? Or will that cause confusion if my macro doesn't find one of the names in a match.

I'm sure I could test it out myself, but I don't have the time before our games this afternoon, so I'm turning to you!

If you ever had a game which included Bob and Fuzz though, your macro would Dispel Magic Bob and not Fuzz, as the most recent command sent (the last one in sequence) is the one that is used.

Also using target=name is risky because you could encounter an opponent with the same name, or a pet with the name.

/cast [target=party1] Dispel Magic

That should always cast Dispel Magic on whoever is in the 1st party slot (excluding yourself). Not sure how this would work in 3s though where your healer may be in a slot other than the first party slot.

If you ever had a game which included Bob and Fuzz though, your macro would Dispel Magic Bob and not Fuzz, as the most recent command sent (the last one in sequence) is the one that is used.

Also using target=name is risky because you could encounter an opponent with the same name, or a pet with the name.

/cast [target=party1] Dispel Magic

That should always cast Dispel Magic on whoever is in the 1st party slot (excluding yourself). Not sure how this would work in 3s though where your healer may be in a slot other than the first party slot.

Okay - thanks. That's what I had, but when I tried spamming it when in a raid with both "Bob" and "Fuzz" I got no "nothing to dispel" alert, so I was worried that perhaps I'd done something to anger the macro gods. It might have had something to do with one or the other of them being out of range.