• 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: Referencing an app by process id?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Prev by Date: Re: (OFF) What Ever Happened To OpenDoc?
  • Next by Date: Re: (Off) What Ever Happened To OpenDoc?
  • Previous by thread: RE: Refrencing an app by process id?
  • Next by thread: Scripting a reset of all receive dates in Outlook Express
  • Index(es):
    • Date
    • Thread