         if openInBackground != nil {
             launchInBackground = openInBackground!
         }
-        
+
+        if !launchInBackground {
+            NSWorkspace.sharedWorkspace().launchAppWithBundleIdentifier(
+                bundleIdentifier,
+                options: NSWorkspaceLaunchOptions.Default,
+                additionalEventParamDescriptor: nil,
+                launchIdentifier: nil
+            )
+        }
+
         NSWorkspace.sharedWorkspace().openURLs(
             urls,
             withAppBundleIdentifier: bundleIdentifier,

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

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

            if strategy["openInBackground"] != nil {
                openInBackground = (strategy["openInBackground"]! as! Bool)
            }
