Sorry I looked for it on forums but didn't find it. How do i make a macro for buffs

example i'm trying to use is for stoneskin and shock spikes but it only does the first and then stops?

/ac "Stoneskin" <me>
/ac "Shock Spikes" <me>

I tried to put a wait in there between but did't work. If someone cam show the macro for this it would help alot. thx