• 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
Summary: OS X running?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Summary: OS X running?


  • Subject: Summary: OS X running?
  • From: Robert Poland <email@hidden>
  • Date: Thu, 19 Sep 2002 14:21:48 -0400

>There is a way to tell if classic is running;
>tell app "Finder" to set procs to name of every process
>
>if procs contains {"Classic Support"} then
> -- blah
>else
> --blah blah
>end if
>
>My question;
>
>Is there a way to tell if OS X is running?

Since I didn't get an answer I ran:

tell application "Finder"
set procs to name of every process
end tell
--> and got
--> {"loginwindow", "Finder", "Dock", "iTunesHelper", "System
Events", "SystemUIServer"}
--> I stripped the apps from this

"Dack" seem to be a safe indicater of OS X running so I tried:

tell application "Finder"
set appRunning to "Dock"
if exists process appRunning then
tell me to display dialog "The application \"" &
appRunning & "\" is running."
end if
end tell

Works for me.
--
Bob Poland - Sumter, SC
email@hidden
Check out my garage sale http://www.ibrb.org/
_______________________________________________
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: 
 >OS X running? (From: Robert Poland <email@hidden>)

  • Prev by Date: QuickTime and AppleScript
  • Next by Date: Re: EUREKA! [was: Re: Macintosh Scripting]
  • Previous by thread: OS X running?
  • Next by thread: Re: Retrospect and ASIP
  • Index(es):
    • Date
    • Thread