I am asking this because I am drawing a plot in Mathematica and export it to a PDF format. I need to check the quality of the plot and may need to modify it and export it again. Sometimes I forget to close the PDF file and I have to go back to close it and run the Mathematica notebook again. Suppose I need to export a plot pic
to PDF with the command
Export["C:\\Users\\abc\\figures\\pic.pdf", pic]
Is there a way I can put a command to close the file pic.pdf
first (if it is opened), and open pic.pdf
with another command after I Export
it?
Basically, I am asking if Mathematica is capable of closing and opening a file by its path in another app, say a PDF reader.