             "alt": NSEvent.modifierFlags().intersect(.AlternateKeyMask) != []
         ]
     }
-    
+
     func application(sender: NSApplication, openFiles filenames: [String]) {
         for filename in filenames {
             callUrlHandlers(nil)(url: NSURL(fileURLWithPath: filename ))

            } else if let bundleIds = strategy["bundleIdentifier"] as? Array<String>! {
                bundleIdentifier = getActiveApp(bundleIds)
            }
            
            if strategy["openInBackground"] != nil {
                openInBackground = (strategy["openInBackground"]! as! Bool)
            }

    func applicationDidBecomeActive(aNotification: NSNotification) {
        isActive = true
    }

    func applicationDidResignActive(aNotification: NSNotification) {
        isActive = false
    }
