How to call an existing LibreOffice python macro from a python script
问题 Currently I call an existing existing LibreOffice macro with this: def OnLOtimestamp(self): try: pid= Popen(['lowriter '"'"'vnd.sun.star.script:fs2TimeStamp.py$fs2_TimeStamp?language=Python&location=user'"'"],shell=True).pid except OSError, e: self.notify_show("Timestamp Error",str(e)) self.ma2.SetLabel("Macro timestamp") self.database['Time_stamp'] = self.database['Time_stamp'] + 1 The key bit being the Popen call, where the macro name is fs2TimeStamp.py and the function is fs2_TimeStamp but