Making a macro to announce me rezzing ONLY if target is in range and the spell is being cast?

I can make a simple macro to announce when I’m trying to rez. The problem is the announcement in /say and /party or /raid fires off even if the target isn’t in range and the spell isn’t casting.

/suppressmacrofailures
/cast Redemption
/party Rezzing %T
/say Rezzing %T

If you use weak auras, you can make one that will announce in chat and have it trigger when you actually start casting only. Also makes it so it wont spam, which is why I prefer doing them that way.

Macros are not allowed to check if the action is valid.