• 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: How to check if an application has a file open?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to check if an application has a file open?


  • Subject: Re: How to check if an application has a file open?
  • From: Bryan <email@hidden>
  • Date: Wed, 25 Jul 2001 21:51:18 -0400
  • Organization: Apex Radiology

OpenedFiles Addition

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

Copyright ) 1999 John Louch. All rights reserved.
Email: email@hidden, email@hidden

Usage:

-- gets every open file
set everyOpenFile to opened files

-- gets opened files of type "APPL" (application)
set openedApps to opened files type "APPL"

-- gets opened resource files
set openedResources to opened files fork resource fork

-- gets opened file whose creator is "????"
set openedFiles to opened files creator "????"
Dave Fugiel wrote:

> How do I check if an application has a file open.
>
> I don't care about the file itself, just if
> my application has something open.
>
> Many thanks for everyones help, this list
> has made my life a lot more enjoyable
> during my applescripting efforts.
>
> F U G E
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


References: 
 >How to check if an application has a file open? (From: Dave Fugiel <email@hidden>)

  • Prev by Date: Re: How to check if an application has a file open?
  • Next by Date: Re: Maximum number of files in a folder
  • Previous by thread: How to check if an application has a file open?
  • Next by thread: Re: How to check if an application has a file open?
  • Index(es):
    • Date
    • Thread