Adding support for programmatic splits with AppleScript

Also, added a way of testing AppleScript scripts :)

Thanks in advance,