If you ever use a scripting call to initiate a preview, respond to this thread with details about how you do this and why.
We're in the middle of making some preview changes that have implications for scripting, so your answer will inform when and how we make certain changes.