App wont quit

I made an app using applescript which does a certain check in a “repeat, check, delay…” loop.
When I open it, cmd+q won’t work on it, it simply won’t quit…
Does anyone know how to solve this?

Thank you.

Hi,

if you have an infinite loop in the main code, the quit handler will never be called.
Use the idle handler for repetitive tasks

Thanks!
You’ve been much help.