Pausing an application process

Hi, hello to all! one small question… is there a way with applescript of detecting an application process and pause it indefinitely until I press a button in my applescript?
any ideas will help!
Thank you!