• 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: list of (non-background) processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list of (non-background) processes


  • Subject: Re: list of (non-background) processes
  • From: Kai <email@hidden>
  • Date: Wed, 16 Apr 2003 03:44:00 +0100

on Sun, 13 Apr 2003 20:41:16 +1000, Adam Hinshaw <email@hidden>
wrote:

> just replying to my own post from last week.
>
> i ended up finding a simplistic way to do this and thought some one else may
> find it useful.
>
> -------------
> tell application "System Events"
> tell process "Dock" to set dockStuff to title of every UI element
> set runningApps to {}
> set procs to the title of application processes
> repeat with curApp in dockStuff
> if curApp is in procs then
> set runningApps to runningApps & curApp
> end if
> end repeat
> end tell
>
> return runningApps
> -------------
>
> Bit dodgy, i know and dependent on Apple not alter the System Events beta
> and the Dock too much, but hey it works now :)
>
>> im trying to get a list of the current running processes on OSX (10.2+).
>>
>> the trick is i'm after those non background-only apps, i guess its the
>> equivalent to what the dock shows as running apps.
>>
>> so 'tell application "System Events" to get the application processes' wont
>> cut it. I've tried a couple of filtering attempts with System Events but
>> can't find a consistent set of properties that will give the background-only
>> kind of test im after. (Using the new UI beta version + also tried with the
>> old one)
>>
>> Any one have any ideas ?

Did you try this one, Adam?

======================================

tell application "System Events" to [NoBreak]
(processes whose file type is not "appe")'s name

======================================

Just a thought...

--
Kai
_______________________________________________
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.

  • Follow-Ups:
    • Re: list of (non-background) processes
      • From: Adam Hinshaw <email@hidden>
  • Prev by Date: Re: Responding to events
  • Next by Date: Re: list of (non-background) processes
  • Previous by thread: RE: Scripting The Launcher (newbie)
  • Next by thread: Re: list of (non-background) processes
  • Index(es):
    • Date
    • Thread