• 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: Christopher Nebel <email@hidden>
  • Date: Fri, 26 Dec 2003 14:43:52 -0800

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.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >Re: check a process (From: Nigel Smith <email@hidden>)

  • Prev by Date: Re: Accented Characters in Finder Names
  • Next by Date: Re: Regarding Unknown elements in AS GUI
  • Previous by thread: Re: check a process
  • Next by thread: Re: check a process
  • Index(es):
    • Date
    • Thread