On Tuesday, March 8, 2016 at 9:47:21 AM UTC+1, Jon Stovell wrote:
>
> Yeah, QS should send SIGKILL, not SIGQUIT. I've submitted a pull request
> here:
> Use SIGKILL instead of SIGQUIT to Force Quit
> <https://github.com/quicksilver/ProcessManipulationPlugIn-qsplugin/pull/4>
>
In the meantime, I made this applescript action to send TERM (or any other
signal you want) to quit an application. It's written to work with
application bundles — although not using direct types, because specifying
the UTI doesn't work — but you can modify it to suit your needs.
using terms from application "Quıc?sı????"
on «event DAEDopfl» thePaths
repeat with thePath in thePaths as list
set thePathContentType to do shell script "mdls -name kMDItemContentType "
& quoted form of POSIX path of thePath & "| cut -d \\\" -f 2"
if thePathContentType is not "com.apple.application-bundle" then
beep
return
end if
set ApplicationName to do shell script "echo " & thePath & " | sed -E \"
s/.*:(.*)?\\.app:/\\1/\""
set SignalToProcess to "TERM" -- signal as in 'man 3 signal'
set BundleId to id of application ApplicationName
tell application "System Events" to set ProcessId to («class idux» of
every «class prcs» whose bundle identifier is BundleId)
if running of application ApplicationName then
do shell script "kill -s " & SignalToProcess & space & ProcessId
else
beep
end if
end repeat
end «event DAEDopfl»
on «event DAEDgdob»
return {"NSFilenamesPboardType"}
end «event DAEDgdob»
end using terms from
--
You received this message because you are subscribed to the Google Groups
"Quicksilver" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/d/optout.