xxxxxxxxxx
tell application "System Events"
set quitApps to name of every application process whose background only is false
end tell
set appToQuit to "APPLICATION_NAME" -- Replace APPLICATION_NAME with the name of the application you want to force quit
tell application "APPLICATION_NAME"
quit
end tell