       else optionSet.lastActiveIndex = index
 
 
-
-
-
   # setGroup:-> console.log 'setGroup', arguments
 
   # openFileWithApplication:(file, appPath)->


    @appControllers = {}
    @frontApp       = null
    @defaultApps    =
      text  : "Ace"
      video : "Viewer"
      image : "Viewer"
      sound : "Viewer"
    @on 'AppManagerWantsToShowAnApp', @bound "setFrontApp"

    # temp fix, until router logic is complete
    @on 'AppManagerWantsToShowAnApp', @bound "setMissingRoute"

  # temp fix, until router logic is complete
  setMissingRoute:(appController, appView, appOptions)->

          options.requestedFromAppManager = yes
          @open name, options, callback
        return
      else if appOptions?.thirdParty and not options.requestedFromAppsController and not @appControllers[appOptions.name]
        kodingAppsController.runApp (KD.getAppOptions name), callback
        return

