• 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: Sun, 28 Dec 2003 10:30:57 -0800

On Dec 27, 2003, at 2:12 PM, Marc K. Myers wrote:

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

Sure -- in fact, testing for "Classic Support" is the more reliable way. I was merely pointing out a more effective way to test for the existence of a particular process.


--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: "Marc K. Myers" <email@hidden>)

  • Prev by Date: Re: Unix Find/Replace (Was: [OT] Shell scripting (2))
  • Next by Date: Making OS 9 scripts work in OS 10 - problems...resolved!!!
  • Previous by thread: Re: check a process
  • Next by thread: Appleworks: scripting 'print to pdf' without dialog
  • Index(es):
    • Date
    • Thread