Estoy tratando de conseguir mi script que funciona a hacer 2 cosas: que se ejecute en segundo plano cada 60 segundos, y desaparecen desde el finder y el dock.
Original:
tell application "System Events"
set process_list to the name of every process
if "QuickLookUIService" is in process_list then
set ThePID to unix id of process "QuickLookUIService"
do shell script "kill -KILL " & ThePID
end if
end tell
Cuando me pruebe el siguiente código de inactividad, el guión deja de funcionar.
on idle
tell application "System Events"
set process_list to the name of every process
if "QuickLookUIService" is in process_list then
set ThePID to unix id of process "QuickLookUIService"
do shell script "kill -KILL " & ThePID
end if
end tell
return 60
end idle
Y cuando me agregue este código para ocultar desde el finder, no pasa nada. Ideas?
tell application "Finder"
set visible of process "killQuickLook" to false
end tell