Hi Guys,
I have an AppleScript that I have created. I was wondering how I can keep it running in the background when I start my Mac and to automatically close "PDApp" when "Adobe Flash CC 2014" is open and not for me to manually execute the script each time "Adobe Flash CC 2014" is open. Thanks.
I hope you guys can help
Script.
on run {input, parameters}
tell application "System Events"
set ProcessList to name of every process
if "Adobe Flash CC 2014" is in ProcessList then
set ThePID to unix id of process "PDApp"
do shell script "kill -KILL " & ThePID
end if
end tell
return input
end run
I have an AppleScript that I have created. I was wondering how I can keep it running in the background when I start my Mac and to automatically close "PDApp" when "Adobe Flash CC 2014" is open and not for me to manually execute the script each time "Adobe Flash CC 2014" is open. Thanks.
I hope you guys can help
Script.
on run {input, parameters}
tell application "System Events"
set ProcessList to name of every process
if "Adobe Flash CC 2014" is in ProcessList then
set ThePID to unix id of process "PDApp"
do shell script "kill -KILL " & ThePID
end if
end tell
return input
end run
Last edited: