I considered something like that myself. I think the problem you run in to is that the command to switch action bars will still run even if the spell assigned in the macro doesn't.