• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finding out is an Application is running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Close all windows
  • Next by Date: Re: Error in the Finder
  • Previous by thread: Re: Finding out is an Application is running
  • Next by thread: Close all windows
  • Index(es):
    • Date
    • Thread