Make new document from selection with Skim

Hi everyone,

I am desperately trying to write an applescript that makes a new Skim-document from the selection with the given selection bounds. I want to use applescript just as I would do the following: select part of a PDF, copy to the clipboard, hit “make new out of clipboard”, save new file as. I’ve been trying to figure out how to do it for hours, but cannot get it to work. I appreciate any help on this. Thanks in advance.

Alex