• 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: Martin Orpen <email@hidden>
  • Date: Wed, 11 Feb 2004 22:08:04 +0000

on 11/2/04 8:57 pm, Andrew at 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.

Regards

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.

References: 
 >Finding out is an Application is running (From: Andrew <email@hidden>)

  • 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: Re: Finding out is an Application is running
  • Index(es):
    • Date
    • Thread