Re: OS X: AS 1.8.2b1: ask System Events for a running process
Re: OS X: AS 1.8.2b1: ask System Events for a running process
- Subject: Re: OS X: AS 1.8.2b1: ask System Events for a running process
- From: Mr Tea <email@hidden>
- Date: Sat, 2 Feb 2002 17:58:48 +0000
This from Bill Cheeseman
>
The correct syntax is:
>
>
tell application "Finder" to get every process whose creator type is "MACS"
>
>
And yes, it times out for me.
But this:
tell application "Finder" to get name of every process whose creator
type is "MACS"
returns "Finder" without significant delay.
The nub of the problem seems to lie with asking for 'every process'
without requesting some specific parameter. All of the following work:
file type of every process whose creator type is "MACS"
name of every process whose creator type is "MACS"
creator type of every process whose file type is "FNDR"
file of every process whose creator type is "MACS"
..and so on.
In fact, asking for every process whose creator type matches [any running
process] results in the timeout error, whle supplying a creator type of
something that's not running (or any old string, I tried "bollocks") just
results in an empty list.
Oddly enough, this:
tell application "Finder" to get every process whose name is "Finder"
also returns {}
Bemused Mr Tea
--
"Always remember to warm the pot."