I have previously[1] noted that switch seemed to be much faster than if. It might be worth seeing if[2] that claim holds up within the context of this macro, @davidt.
switch
if
Also... I wonder whether it might be worthwhile trying compiled Applescripts.
How to toggle 2 actions (not simple menu items)? - #4 by kevinb ↩︎
/ switch ↩︎
For more information, see the wiki Searching the Forum for Answers section.