The following script:
on isRunning (AppName)
tell application “Finder”
set runningApps to (name of every process whose file type is “APPL”) as list
set numberOfApps to count of items of runningApps
repeat with thisName in reverse of runningApps
if thisName contains AppName then
returns an error “Scripting Component Error” whenever I tried to run as a non-admin user. If I allow the user to administer the computer (in Account settings) the script runs without error. Does the user have to have privileges to a particular folder to make queries about processes?