Recurrent Security and Privacy notice

Having written an app I am still getting recurrent Security and Privacy notices every time I run the app.
All the relevant boxes are ticked in the Security and Privacy settings though in the Privacy tab it has renamed the app with a suffix 2. There is no way I can delete that.
Any one else had similar problems?

Hi.

Does your app (I assume it’s an AppleScript one) use persistent variables — ie. properties, globals, and/or run-handler variables not explicitly declared local? If so, their values at the end of each run will be saved back to the script file, making it look like a different file to the security system.

Thanks for the Advice Nigel. I will look at this.