Is there a way to tell if a document is open and being used?

Hey folks,

I would love to know if there is a way to tell if a program has a document open. I’m trying to figure this out about Final Cut Pro project files in particular…but I don’t see a way to do it.

Is there a way to do it via AppleScript, shell script, something?

Thanks.

Hi,

this depends on the application and whether the app is scriptable.
For example TextEdit.app has a document property, and document has even a modified property,
to check, whether the document is modified but not saved yet