I can check to see if a process is running with
tell application "System Events"
if exists process "Activity Monitor" then
display dialog "Running"
else
display dialog "Not running"
end if
end tell
but how can I tell who it belongs to? I need to know if the active user has an app open.
--Non-working example
if exists process "Activity Monitor" with user "maeks84" then
Does UNIX have to get involved in this?