I find this on another forum but doesn't seem to work for my deathknight could anyone look at it and see whats wrong? The macro should work as long as you swap the names with yours and set sg# to the glyph slot you're changing. Thanks
/run local s,g=6,{"Outbreak","Dark Simulacrum"} GyP:SetAttribute("slot",s) GyP:SetAttribute("glyph",GetSpellInfo((select(4,GetGlyphSocketInfo(s))) ):match(g[1]) and g[2] or g[1])
/click GyP