• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Files open on a disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Insert Pic in MS WORD & information dialog
  • Next by Date: Margin measurements in QuarkXPress
  • Previous by thread: Files open on a disk
  • Next by thread: Scripting LaserWriter 8 page setup
  • Index(es):
    • Date
    • Thread