I’m pretty new to applescript and I was wondering how to make a handler for an application to detect when the application is opened by double clicking on a connected document. For example if i was using this with microsoft word it would detect when word was opened by double clicking on a text document.