Re: check a process
Re: check a process
- Subject: Re: check a process
- From: "Marc K. Myers" <email@hidden>
- Date: Sat, 27 Dec 2003 17:12:06 -0500
From: Christopher Nebel <email@hidden>
Subject: Re: check a process
Date: Fri, 26 Dec 2003 14:43:52 -0800
To: Applescript Users <email@hidden>
On Dec 23, 2003, at 1:45 AM, Nigel Smith wrote:
On 18/12/03 12:25, "Jim Brandt" <email@hidden> wrote:
Specifically, I want to know if the Classic environment is running
before I try to launch a OS9 application.
If you know a particular process always runs in Classic, you could
test for
that. For example, my Classic has the Suitcase extension installed so
I can
do:
tell application "System Events"
if (name of every process as text) contains "Suitcase 9" then
return true
else
return false
end if
end tell
Processes are objects, and there's a perfectly good "exists" verb:
tell application "System Events"
return (exists process "Suitcase 9")
end
Ask for the information you want.
Am I mistaken in thinking you don't need to have a process running in
Classic to detect Classic? Couldn't you say:
tell application "System Events"
return (exists process "Classic Support")
end tell
Marc [12/27/03 5:10:51 PM]
_______________________________________________
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.