This posting is older than 6 months and can contain outdated information.
Thanks for asking.
There's currently no way to provide dynamic menu content using AppleScript. You can, however, use Remote Buddy's menu AppleScript command to present your own, independent menu structure. For examples, please see Remote Buddy's AppleScript dictionary in AppleScript Editor.
Best regards,
Felix Schwarz