Re: Determine if file is already open
Re: Determine if file is already open
- Subject: Re: Determine if file is already open
- From: Bastiaan Boertien <email@hidden>
- Date: Mon, 5 May 2008 12:51:38 +0200
If you want to know is a file is open by your system you can use lsof.
But I'm not sure if this where you are looking for.
For example if you open an txt file with texteditor.app then text
editor will open the file, read the file and put it's contents in the
new window text editor has made. After the contents of the file is in
your window, text editor closes the file. So text editor shows the
file but in your system the file is already closed. lsof also doesn't
show that this txt file is open because it isn't.
greets
Op 2 mei 2008, om 23:04 heeft Raymond P Reedy het volgende geschreven:
Before I issue an "Open File" command to the Finder, how do I
determine if the file is already open?
Thanks,
Ray
Raymond P Reedy
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden