I would like to create an apple script that checks if a window of an application with a specific name (not id or index) exists. I used the following code in a previous script, and it works:
tell application "Notes" to close (every window whose name is "Notes")
However, I can't figure out how to check if a window with this title exists. This should be incredibly simple. How do I do it?