For Opening application

On opening any applications my script show a display dialog"you r opening
this application"

please assist me. I’m very greatful for that
thanx

This is more an AppleScript question than an Xcode question. Better response here.