I'm not a developer but try to use applescript to do some work for me. I have a small script to find a application and kill it.
I have read many articles but not found a solution.
tell application "System Events"
set x to first process whose name is "Blotter"
return unix id of x
end tell
try
do shell script "kill " & x
end try
I get the process id as a result.
tell application "System Events" get process 1 whose name = "Blotter" --> application process "Blotter" get unix id of application process "Blotter" --> 34990 end tell
Ergebnis: 34990
But I'm not able to kill it...
I would be really grateful for a tipp. Thanks
killall Blotter- user3439894SIGTERM(the default), withdo shell script "kill -9 " & x. or equally using the name instead of number...kill -s KILL PID- Mark Setchelltry do shell script "kill 34945" end try- gr8returnstatement does just that - it returns from the script, which ends it. - red_menace