Re: Dock Apps - User apps running
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.