Your comments

No you can't. AppleScripts have to be supported in the base bundle by including a .sdef file that provides definitions for what scripting the application supports and then add this to the Info.plist for the application. Plugins can't modify this.

AppleScript needs no evaluation, just linking to variables and functions using the .sdef file. There is a standard suit of functions that are supported just by including the .sdef file, which require 0 extra code.

Well the thing is, there is some platform-specific support and code for sure. There is no reason why adding support for a platforms feature would affect the other platforms that don't support it.

This would be an awesome feature. Just having basic support so we can at least interact with the windows and application at the most basic level.