Re: Referencing an app by process id?
Re: Referencing an app by process id?
- Subject: Re: Referencing an app by process id?
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 26 Jul 2001 19:01:48 -0400
- Organization: [very little]
>
Date: Thu, 26 Jul 2001 17:39:28 -0400
>
Subject: Refrencing an app by process id?
>
From: "Edward F. O'Rourke IV" <email@hidden>
>
To: <email@hidden>
>
>
Is there a way to refrence the app in a tell by process id?
>
>
As in
>
>
Tell app "myapp"
>
>
Tell process 3
>
>
And is there a way to list all running processes by name?
You can't tell a process directly, but you can accomplish the same thing indirectly:
tell application "Finder"
set theApp to (file of process 10) as text
end tell
tell application theApp to quit
or
tell application "Finder"
set theID to creator type of process 10
end tell
tell application file ID theID to quit
For names:
tell application "Finder"
set nameList to name of the processes
end tell
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[7/26/01 6:58:45 PM]