I am currently needing an application to launch after the user restarts their computer. They will be running an application that will prompt a restart, after the restart, I need another application to launch. Or, if I could put code in the previous application that is causing the restart, to open a different application after restart. I have found some different code but it seems to be older versions. What is the most effective way to do this in a Cocoa OS X Application with Swift.