I’m trying to write a script that checks to see if FMP6 Unlimited is up and running on our xServe and if not launches the program and databases that need to be opened on it.
I can get the databases to open by launching them with/in the Finder but how do I determine if FMP6U is up and running - if it’s down I want it to try the launch sequence and then send me and a few other people a message telling us it was down and what the results of the try were - successfull, not successfull.
I tried this:
using terms from application “Finder”
tell application “Finder” of machine “eppc://macadministrator:m3r10nr00t@kopxserv01.local”
try
return processes
on error errMsg
display dialog errMsg
end try
end tell
end using terms from
but I get an error:
Cannot get process on host
Any help would be appreciated