Hi, I would like to propose a patch for LyX that allows using AppleScript instead of the LyX server (for better OSX integration). The patch is quite simple and can be found there:
http://lyx.lyx.org/trac/ticket/8185 it basically handles only one AppleScript command run [COMMAND] with argument [ARGUMENT] that returns a composite object (string message + integer code). Benjamin