Is there a way to combine two fullscreen windows into a split view window with Automator/AppleScript?

I'm currently making a workflow in which I need to combine two windows into a split view window (the feature from OS X El Capitan). I'd there any way to do that with AppleScript?


Do you need a real fullscreen or are you trying to achieve something like this?

enter image description here

There are dozens of apps to do this so one of them will have AppleScript or key shortcuts. See:

  • How to arrange two windows easily to left and right side?
  • What Window Management Options exist for OS X?