Re: Files open on a disk
Re: Files open on a disk
- Subject: Re: Files open on a disk
- From: "Bryan" <email@hidden>
- Date: Mon, 09 Jul 2001 02:03:30 -0400
If you can use a third party OSAX, there's
OpenedFiles Addition; whose dictionary contains the following:
opened files suite :
opened files : returns opened files
opened files
[type string] -- return open files that have this type
[creator string] -- return open files that have this creator
[fork data fork/resource fork] -- default - return files with any fork
open
Result : a list of file specification -- a list of file specifications that
are open
You can then parse the list of file specs for the disk you are dealing with.
Bryan Kaufman
>
Does anyone know how to find out if a disk has files open on it? I want to
>
write a script that will unmount a disk and close any files that may be open
>
on it but leave open any files opened from the hard drive or a Zip disk. I
>
can unmount the disk but can't figure out any way to close only the files
>
open on that disk without closing every file period.
>
>
Thanks,
>
>
Tim Wilkinson