• 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: OS X: AS 1.8.2b1: ask System Events for a running process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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."


  • Follow-Ups:
    • Re: OS X: AS 1.8.2b1: ask System Events for a running process
      • From: cris <email@hidden>
References: 
 >Re: OS X: AS 1.8.2b1: ask System Events for a running process (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Week of year - odd/even week
  • Next by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Previous by thread: Re: OS X: AS 1.8.2b1: ask System Events for a running process
  • Next by thread: Re: OS X: AS 1.8.2b1: ask System Events for a running process
  • Index(es):
    • Date
    • Thread