Re: list of (non-background) processes
Re: list of (non-background) processes
- Subject: Re: list of (non-background) processes
- From: Adam Hinshaw <email@hidden>
- Date: Wed, 16 Apr 2003 13:51:07 +1000
kai,
yeah i went down the file type filter route but in OSX "appe" seems to be a
bit redundant (ie, under used). Nearly every process is "APPL", including
invisible/background stuff like the dock and login window. Seems background
apps in OSX don't have a unique property that AS can identify.
.adam
on 16/4/03 12:44 PM, Kai at email@hidden wrote:
>
Did you try this one, Adam?
>
>
======================================
>
>
tell application "System Events" to [NoBreak]
>
(processes whose file type is not "appe")'s name
>
>
======================================
>
>
Just a thought...
>
> 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
_______________________________________________
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.