• 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: Thu, 12 Feb 2004 13:40:51 -0500

On 2/11/04 6:27 PM, "Christopher Nebel" <email@hidden> wrote:

> If you really want it based on a path, then it's a bit harder, since
> System Events doesn't like "whose" clauses that compare files, but
> still not too bad:
>
> on appIsRunning(applicationPath)
> -- ideally, you'd say "exists first process whose file
> -- is (alias applicationPath)", but that doesn't work, so...
> tell application "System Events"
> set allFiles to file of every process
> end
> return (alias applicationPath) is in allFiles
> end


Thanx this works really, really well.
_______________________________________________
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: 
 >Re: Finding out is an Application is running (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Droplet that crash
  • Next by Date: AppleScript and Lotus Notes
  • 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