No matching processes belonging to you were found
on run
try
display dialog "Some dialog" buttons {"Cancel", "ChoiceA", "ChoiceB"}
if the button returned of the result is "ChoiceA" then
tell application "some application"
quit
end tell
else if the button returned of the result is "ChoiceB" then
try
activate application "Another Application"
end try
delay 3
do shell script "killall -c Another Application"
end if
on error -128
quit
try
tell application "some application"
quit
end tell
end try
end try
end run
However, when the script reaches the killall line, I get an error *"No matching processes belonging to you were found."* So, how can I fix that?
PowerBook G4 1.67 Ghz, Mac OS X (10.4.10)