applog.sh now doesn't write when no app is focussed.