Re: applescript-users digest, Vol 2 #1019 - 12 msgs
Re: applescript-users digest, Vol 2 #1019 - 12 msgs
- Subject: Re: applescript-users digest, Vol 2 #1019 - 12 msgs
- From: John W Baxter <email@hidden>
- Date: Fri, 31 Aug 2001 08:24:01 -0700
At 16:28 +1000 8/31/2001, Phillip Hall wrote:
>
How do I get a list of running processes on Mac OS X?
One approach would be to export the information produced by the Process
Viewer. (Which, unfortunately is not scriptable, so the approach fails.)
Then use something like the Late Night Software XML scripting addition to
obtain records, then...
But I don't know what to do about the applications of interest, which may
hide behind the name LauchCFMApp (of which I have four at the moment).
Next month, we should find out whether Mac OS X 10.1 improves Finder in
this respect. We can hope.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<array>
<dict>
<key>%CPU</key>
<string>1.2</string>
<key>%MEM</key>
<string>2.5</string>
<key>NAME</key>
<string>.OmniWeb</string>
<key>PGID</key>
<integer>57</integer>
<key>PID</key>
<integer>324</integer>
<key>PPID</key>
<integer>57</integer>
<key>RSIZE</key>
<string>23120</string>
<key>STAT</key>
<string>Running</string>
<key>TIME</key>
<string>4:08.59</string>
<key>TTY</key>
<string>??</string>
<key>USER</key>
<string>john</string>
<key>VSIZE</key>
<string>115368</string>
</dict>
<dict>
<key>%CPU</key>
<string>3.1</string>
<key>%MEM</key>
<string>2.2</string>
<key>NAME</key>
<string>Window Manager</string>
<key>PGID</key>
<integer>57</integer>
<key>PID</key>
<integer>57</integer>
<key>PPID</key>
<integer>1</integer>
<key>RSIZE</key>
<string>19824</string>
<key>STAT</key>
<string>Running</string>
<key>TIME</key>
<string>3:25.75</string>
<key>TTY</key>
<string>??</string>
<key>USER</key>
<string>john</string>
<key>VSIZE</key>
<string>60984</string>
</dict>
(omitting the other 40)
--
John Baxter email@hidden Port Ludlow, WA, USA