Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

btownsen4

macrumors newbie
Original poster
Is there anyway I can make it so when an application quits it runs a script on exit? Ive tried searching this on google but am not sure of what the exact term for this is.

I want to tell this Missing Sync Application To Kill Its Daemon (Missing Sync WM Monitor) when it quits. Dont care what language, I know almost all of them.

Thanks
 
Is there anyway I can make it so when an application quits it runs a script on exit? Ive tried searching this on google but am not sure of what the exact term for this is.

I want to tell this Missing Sync Application To Kill Its Daemon (Missing Sync WM Monitor) when it quits. Dont care what language, I know almost all of them.

Thanks

There are two possible solutions i can think of to solve this issue

1. Linked Applications Launcher I have no experience with this application

2. Write a script, such as the example below (quickly altered from a script i use to run Football Manager) and save it as an application and use this application rather than the original application, obviously change it to the specifics of your application. You can also make this application hidden from the dock if, like me, you would prefer a "clean" solution.

code said:
tell application "Missing Sync Application" to activate

set apprunning to true

repeat until apprunning is false
tell application "System Events"
set myList to (name of every process)
end tell
if (myList contains "Missing Sync Application") is false then
set apprunning to false
else
set apprunning to true
end if
delay 6
end repeat

tell application "Missing Sync WM Monitor" to quit
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.