On May 17, 2006, at 6:57 PM, RBNUBE wrote:
On Windows, it seems that some files report to the
system that they are open while others do not.
I did mention that this is on Windows, but it actually happens (I
believe) on both Mac and PC.
The OS tracks this, not the file
How would I detect that a file is open? LastErrorCode and
IsWriteable don't
seem to be of much help.
LastErrorCode is not much help because it only verifies that a file
is open
if the program that it is open in is somehow alerting the system
that it has
that file open.
It does that by simply opening the file.
The OS tracks if the file is still "open and in use"
The program does not need to report anything
This is not the case with all files. As I said earlier, opening a
file in
Photoshop will not cause LastErrorCode to fire. If a PDF is open in
Acrobat, it does fire. It also works with Excel.
Acrobat opens the PDF and keeps it open
Other programs open a file, make a temporary copy, close the
original, and then work from the temporary one until you save.
At that point they overwrite the original.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>