FrameScript has the ability to run an "Initial Script" whenever you start FrameMaker. Patternstream has some integration with FrameScript so you may be able to pass parameters to Patternstream once FrameMaker starts using a script. I don't know much about Patternstream so I can't give you the details, but I think you are on the right track. --Rick
I have done a project where my ExtendScript was initiated from a FrameScript. In the other direction, there are several API Clients I use that can be called from ExtendScript, using the CallClient method. As for parameters, if all else fails you can set environment variables in one application and read them from the other side. AFAIK, environment variables are not permanent: when FM exits, the environment variables disappear. But as long as your session runs, they remain available. If no other parameter interchange with the API Cient is available, that method should always work.