Well, that's fine... he's trying to make a UI mod, not a macro. Macros rely on %t and the current target staying the same while UI mods can set the target statically without worry.
He just has funny ideas as to how to do the scripting.
Code:
<Button Name="CureEffect1" NormalTextColor="#FFFFFF" SpellName="Jester's Cap" OnPress="useabilityonplayer Parent.Parent.GroupMember1.MemberInfoPage.Name.Text SpellName
tell Parent.Parent.GroupMember1.MemberInfoPage.Name.Text Jester's for you" Opacity="0.000" ScrollExtent="12,12" Size="24,24" Style="/ProfitUI_Styles.invisible" Tooltip="Jesters" />
This would probably be better, but I cannot guarantee that
Parent.Parent.GroupMember1.MemberInfoPage.Name.Text is the proper path for the text element without looking at the XML file.