Yes I also think her ridiculous last text would have changed the polices tone somewhat at the end of their visit!
It shows how little respect she had for them at the beginning and that would have not gone down well surely?!
Anyway, luckily because you managed to contact them and let them know what she was doing whilst the police were still there, it would have allowed the police to really ram home the message, in a more serious tone, which has obviously worked - yay!
And long may it continue.
But oh my goodness, it’s shocking how long it has taken to get it through her thick skull that her behaviour is unacceptable. No wonder your approach didn’t work, because you treated her like a normal person with social awareness and kindness and well, a sense of limits! And, on a serious note, no wonder it felt so scary, to be the focus of someone for whom all the normal rules appear to have been suspended, because, well, who know what she might do or where she will draw the line.
Thank goodness that you’ve discovered she does appear to listen to the police, even if they have to grab her attention twice to get her to take them seriously, she does seem to be listening. I hope you can feel some comfort in this. And as time goes on and if she carries on behaving, you’ll be able to breathe more easily again properly 