Hi gang,
I’ve been trying to get Finder to force all non-essential processes (running applications) to quit.
I first tried this script… (thanks TJ)
tell application “Finder”
quit (every process whose name is not “loginwindow” or name is not “SystemUIServer” or name is not “finder” or name is not “dock”)
end tell
… The result is that the Finder quits and all other apps stay open!.. I then tried a number of other scripts based on the same principle of identifying the process name and then trying to quit the process. Same result with all attempts.
I reached the conclusion that Finder itself is executing the “quit” command without resolving the arguments which follow.
I’ve had some success by first identifying the name of a process and then telling the matching application to quit, using a script like
tell application processname
quit
end tell
However this is raising some other problems in the environment I’m running and I believe I really need to tell the process to quit rather than telling the application to quit.
Does anyone have any ideas on how to tell a process to quit??,
Cheers,
Graham