You might be better off using /castsequence macros like Jusa suggested.