I usually just have a separate key for applying debuffs/dots or use castsequence macros... Something along the lines of:

/castsequence reset=shift/target *dotspell*, null
/cast *spell #2*

Casts dot, then defaults to *spell #2*, reset either by aquiring a new target or with shift.