AppleScript and Endnote X7

I’ve been trying to automate Endnote X7 on Mac OS and have been using automator.

It works to an extent, but it is fiddly to work out the UIElements etc.

I can see from some older documentation, e.g. the EndNote Technical Scripting section of this endnotex6machelp.pdf and some of the earlier versions’ documentation that there used to be AppleScript support.

However, I can’t find any sufficiently detailed documentation to do anything useful with X7 – is automation via AppleScript with X7 still possible? And is there any decent documentation anywhere?

Thanks in advance