file.isBusy

Syntax file.isBusy (path)

Params path is a legal path name to the file whose status you wish to determine.

Action Determines whether the file named in path is in use by any application or by the operating system.

Returns True if the file is busy, false if it is not.

Examples file.isBusy ("C:\\Program Files\\Frontier\\Frontier.exe")

   » false

file.isBusy ("C:\\Program Files\\Frontier\\")

   » false


file.isBusy ("System:System Folder:Finder")

   » true

file.isBusy ("System:System Folder:TeachText")

   » false

Notes A folder is always busy if it is not empty. It may also be busy if it is the "current" folder of an open application (the folder displayed by standard file dialogs when they are invoked).

Discuss