• 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: Dock Apps - User apps running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dock Apps - User apps running


  • Subject: Re: Dock Apps - User apps running
  • From: Joshua See <email@hidden>
  • Date: Wed, 8 Oct 2003 12:29:25 -0500

On Wednesday, October 8, 2003, at 07:37 AM, Emmanuel wrote:
Restating:
At 10:02 AM +0100 08/10/03, Ketan Majmudar - Spirit Quest wrote:
Are there other methods of getting information on the dock apps which are open ?

Is that different from what you would get with do shell script "ps -Uww theUser"?

(theUser is the user's name - there must be standard ways of getting that but I don't know how)
The command whoami will tell you as well as the variable USER. However, in this case you don't need it. ps assume you just wants the processes of the current user unless you tell it otherwise. I've found it helpful to sift for a process serial number to isolate "real" Mac OS applications, rather than daemons, CLI commands, and the other faceless beasties floating around OS X.

set listapps to every paragraph of (do shell script "ps -xwwo \"command\" | grep \\[p]\\[s]\\[n]_")

Note that the output would require more massaging than that produced with pure AS, and wouldn't cover Classic applications. Hence I'm not sure if this is worth the effort.
--
Sincerely,
Joshua See
_______________________________________________
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: Dock Apps - User apps running (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: POSIX paths query explained better
  • Next by Date: Re: POSIX paths query explained better
  • Previous by thread: Re: Dock Apps - User apps running
  • Next by thread: Re: Dock Apps - User apps running
  • Index(es):
    • Date
    • Thread