Forego the "write" method.

instead, get into your macro menu.
make a new macro.
type the starter: #showtooltip
then type: \cast
and open your spell menu, and SHIFT right click on the spell for Mangle (Cat)

I think your macro will look like:

#showtooltip
/cast Mangle(Cat)


You may also like this website.
http://druid.wikispaces.com/Macro's+and+Addons