How to re-grant access to an updated AppleScript ap?

I’m developing a stay open AppleScript using Script Editor that needs System Events to read other app windows. I save the app as stay open application, grant the permission in System Preferences, but I keep getting denied to assistive access. What is the proper way of granting access, and how do I iterate changes to my script without getting banned from using assistive access?

Are the permission issues related to running the application again? Are you code-signing or otherwise making the script read only?

How to re-grant access to an updated AppleScript ap?
 
 
Q