Re: Finding out is an Application is running
Re: Finding out is an Application is running
- Subject: Re: Finding out is an Application is running
- From: Andrew <email@hidden>
- Date: Wed, 11 Feb 2004 17:01:29 -0500
On 2/11/04 4:55 PM, "Martin Orpen" <email@hidden> wrote:
>
> I was wondering if there was any way of figuring out if an application file
>
> at some path is currently running.
>
>
>
> The way I do it now is by the insane :
>
>
Wouldn't it be easier to use "do shell script" for this kind of task?
>
>
ps -ax | grep whatever
>
>
Will determine if an app is running.
>
>
You can also use stuff like:
>
>
lsof | grep whatever
>
>
To determine if a specific file is open.
I've been bitten by the terminal truncating its output before. I am pretty
sure it will happen again since I need to match the entire path in the
output of ps -ax given that all the apps that are running are copies of the
same app so have the same name in the terminal.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.