I want to write a script to toggle the opening and closing of a pdf file. For example if i have a flie called myFile.pdf I want the script to open/load it. However if myFile.pdf is open then i want the same script to close it. Could someone please tell me how I can know if the pdf file is open/loaded? Thank you Simon