Add applescript support and change where split windows are created.