Re: testing for Classic and restarting
Re: testing for Classic and restarting
- Subject: Re: testing for Classic and restarting
- From: email@hidden
- Date: Wed, 3 Mar 2004 11:40:49 EST
Thanks. Your code does work and is much appreciated.
The reason for my question on restarting Classic on a remote workstation,
especially if it has crashed, is to maintain its connections with a network of
Linux and Windows servers by not restarting OSX also. If I were to test activity
for a specific Classic application would I simply replace "Classic Support"
with the name of the application?
I'm not yet familiar with System Events and the application processes AS
handles, so I know I need to dig further. There seems to be no mention of this in
Apple's AppleScriptLanguageGuide (1999) so I assume there must be more recent
technical notes out there describing this in detail.
--Alan Leverenz
Associated Press, Systems Integration
>
On 2-Mar-04, at 4:21 PM, email@hidden wrote:
>
>
>How does an OSX AppleScript test if Classic is running, and if not,
>
>restart
>
>it?
>
>
>
This works here:
>
>
---
>
tell application "System Events"
>
set IsClassic to exists application process "Classic Support"
>
if IsClassic is false then
>
tell application "Classic Startup" to launch
>
end if
>
end tell
>
---
_______________________________________________
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.