Consistently treat applescript sessions as an array of active sessions. The -[PseudoTerminal sessions] method was wrong; it actually returned all sessions, which caused bug 3147 when there was a split pane.