mac: fix problem with tab() AppleScript