Sorry, I had a typo in my earlier message. It needs to be #focused with a hash tag, not !focused with an exclamation point.
Using ! was used by Mobius 2. I changed to using # in Mobius 3 so ! could be used as the "not" operator which is common in other languages. Examples: != meaning "not equal" and !isActive meaning "not the active track".
Since I imagine this is going to be a common error for anyone that is familiar with Mobius 2 .mos scripts, I'll see if I can make it recognize both styles.