def RunScript(self, params):
        script = os.path.basename(params['scriptFile'])
        script_args = dict([(p["name"], p["value"]) for p in params['scriptArgs']])
        if script in indesign.JS_SAVE_AS_SCRIPTS:
            script_args.pop("source")
            dst_filename = script_args.pop("destination")
            extra_params = script_args
            if script == indesign.JS_PACKAGE_SCRIPT:
                os.mkdir(dst_filename)  # Create the destination dir.
                dst_filename = "%s.zip" % dst_filename

            # Create the file in workdir and write something testable in it.
            fobj = open(dst_filename, "w+")
            fobj.write("%s, %s, %s" % (script,
                                       os.path.basename(dst_filename),
                                       extra_params))
        elif indesign.JS_CLOSE_ALL_SCRIPT in script:
            pass
dataset/ETHPy150Open Starou/SimpleIDML/tests/regressiontests/indesign.py/ServiceSelectorMock.RunScript/swapped operands of `in`