I tried recording and using results, but it came back with “Property or method not found: createUnoService.”
These are the lines I used:
doc = StarDesktop.loadComponentFromURL(TargetName, “_blank”, 0, Dummy())
dispatcher = doc.createUnoService(“com.sun.star.frame.DispatchHelper”)
…
dispatcher.executeDispatch(doc, “.uno:SelectAll”, “”, 0, Dummy())
dispatcher.executeDispatch(doc, “.uno:RemoveHyperlink”, “”, 0, Dummy())
I have spent all day looking for resources.
For the best thing would be change “blackholes.com” to “whiteholes.net” through the whole document. But I will settle for just erasing the links.