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

RE: Summary: OS X running?


  • Subject: RE: Summary: OS X running?
  • From: Daniel Weinstein <email@hidden>
  • Date: Fri, 20 Sep 2002 08:21:03 +1000

That will work in OSX AS. If you try running it under Classic AS (ie. while
Classic is running under OSX), it will fail. Classic AS doesn't understand
the "process" instruction and returns an error.

I gather that Classic AS is meant to re-direct "process" instructions so
that they'll execute correctly, but it doesn't work.

Daniel Weinstein
DB Developments Pty Ltd

-----Original Message-----
From: Robert Poland [mailto:email@hidden]
Sent: Friday, 20 September 2002 4:22 AM
To: email@hidden
Subject: Summary: OS X running?


>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.
_______________________________________________
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.

  • Prev by Date: Re: Unicode to plain text
  • Next by Date: Re: EUREKA! [was: Re: Macintosh Scripting]
  • Previous by thread: Getting Specific Events in iCal
  • Next by thread: New version of SpamCopSend script for OSX 10.2 Mail...
  • Index(es):
    • Date
    • Thread