I am trying to execute an apple script to attach a file to outlook. Now when i attach a certain file, i get an expected error popup saying, "i do not have the permission to attach this file. Click ok or cancel". This is expected result. Now i need to handle this popup by clicking on the "OK" button of the popup. But my script halts at the point where the popup is launched. And the code to click the button does not gets executed. I should manually click ok and the code continues with the next steps. Please let me know how can i handle this..