Handling file open error in Acrobat
Hi,
Sorry... I don't know the correct place to place this so placing here...
I am opening error pdf file in acrobat using applescript. Its throwing error as popup window. I want to handle this pop up and check whether pdf file is opened or not and accordingly i need to proceed further process in pdf file.
I am getting the below error. After that nothing proceeded in code even a alert. I have modified the extension of html file to pdf to handling error pdfs.

Code :
set fileName to "PathToPDF"
set POSIXFile to fileName
tell application "Adobe Acrobat Professional"
activate
try
open POSIXFile
end try
display dialog "Document Opened"
end tell
