@colinwalker this is magic! Thanks for sharing
@colinwalker Doing anything app-specifically (e.g. com.apple.TextEdit), if possible, is usually preferable doing something globally (-g) across the OS, unless you really want to change the behavior of every single app. At least that's what I was taught back in the old days :-)