Summary: OS X running?
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.