Re: How to check if an application has a file open?
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