Adding a document sorting and bundling script 1 Open the Runtime Output Connector Settings dialog box (generic layer). 2 Right-click the level where you want to add the script and select Script. The Script editor opens. 3 If you use scripting on Process begin or Page begin, select whether to run the script before or after the Process or Page is processed. 4 Edit the script and click OK.