Apparently, nobody has an answer to this question. But I'm wondering if the difference between application and process might be a simple as the difference between the /Applications/application.app and the contained MacOS/process? I've seen "Firefox.app" which can be referenced by "application", and "firefox-bin" that can be referenced by "process". That path is: /Applications/Firefox.app/Contents/MacOS/firefox_bin
I'm running MacOSX 10.5.8 on a MacBook-Pro. I'm finding a difference between "process" and "application" that does NOT make sense. Here is my Applescript code snippet:
tell application "Safari"
-- do something, blah, blah blah
-- now, terminate Safari
tell application "Finder"
repeat while (exists process "Safari")
tell application "Safari" to quit
That works, but EITHER or BOTH of the following cause an infinite loop with Safari, or a "Connection is invalid".
1) repeat while (exists application "Safari")
2) tell process "Safari" to quit
With "exists application", or BOTH statements contain "process", this fails in some manner. Why?