       catch error
         return
       return unless protocol is 'sclang:'
+
+      @startSCLang(uriToOpen)
 
       # returns it
       @createPostWindow(uriToOpen)

      @busses[uri] = bus
    bus

  currentExpression: ->
    editor = atom.workspace.getActiveEditor()
    return unless editor?

PostWindow = require './post-window'
Bacon = require('baconjs')
url = require('url')
SuperColliderJS = require 'supercolliderjs'


module.exports =
class Controller

  constructor: (@workspaceView, directory) ->
    @directory = directory.path
    @postWindows = {}
    @busses = {}
    @sclangs = {}
    @activeURI = null
    @defaultURI = "sclang://localhost:57120"

