• 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: check a process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: check a process
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: [OT] Shell scripting
  • Next by Date: Re:New AppleScript book- why a dog
  • Previous by thread: Re: check a process
  • Next by thread: Re: check a process
  • Index(es):
    • Date
    • Thread