checking file busy/in use status
Posted: Sat Apr 05, 2008 3:00 am
I am trying to figure out how to determine if a file has been opened by a revolution standalone so that another user running the standalone on a networked Mac won't be able to open it and edit it. The files I am using are xml files. I have tried to use the lsof file command using the terminal but it does not show the xml file if it is open. What is interesting is that my standalone app also opens a quicktime movie at the same time as the xml file. The unix lsof command does show the quicktime file is open. (I am checking this on the local Mac. Haven't tried this on a network yet.)
Is there some way you have to set a busy flag for the finder when you open an xml document with a revolution standalone? OR Is there a way to determine if a file is in use prior to opening it.
Martin
Is there some way you have to set a busy flag for the finder when you open an xml document with a revolution standalone? OR Is there a way to determine if a file is in use prior to opening it.
Martin