I’m trying to control the use of hyperlinked text in an OO4 document, hopefully using applescript
If I drag a link from a browser into OO4, I will get something that looks like this below (in blue), but when I click on it, the appropriate page in Wikipedia will load in my browser. (Row 1)
~Flat cap - Wikipedia, the free encyclopedia~
If I select this text and then in a different row, Paste and Match Style, then the same text will be pasted but without the linking functionality (and be black)(Row 2).
Other than by dragging, it is possible to create this kind of link?
It is possible to edit an already existing link, by right-clicking and selecting Edit Link. However, this command is unavailable until you select already linked text.
Oddly, if you select the linked text and Copy Style (row 5), and then select some black text and Paste Style (row 6), you will apply the link to the black text. Unfortunately, it applies the link as is… meaning that if that the text won’t match the actual link.
Ultimately, my goal is to be able to be able to create links using applescript, based on open tabs in a browser. I’m able to put a string containing both text and URL into a row but I’m unable to join them into a single element (row 8).
Does anyone understand how this works and how it could be done?
I’ve attached an outline with what I’ve laid out above.