Hi,
I have a Numbers spreadsheet on hand with hundreds of hyperlinks in it. They are all different links but all pointed to a same domain name. So right now I’m hoping to replace a new domain name for all those links. First I tried to look inside the built-in search feature, obviously it didn’t work. I can use this feature to replace text strings floating on the surface, but not the actual hyperlink underground. So I tried to dig into AppleScript, turns out no luck either. I tried three properties, which are “value”, “formula”, and “formatted value”, I can use none of them to find and replace hyperlinks inside the text string. I also tried the Hyperlink function, but that just makes the spreadsheet look horribly weird.
In the end, I came up with a workaround solution: copy and paste them to a blank Microsoft Excel file, and wrote a VBA macro to do the work for me. To me, the problem is temporarily solved, but the way I’m currently using is ugly, and that is how far it goes. So right now I’m still wondering, is there a possible way to do this replacing task inside Numbers just with AppleScript or JavaScript?
(update)
Moderator Nigel Garvey provided an answer at http://macscripter.net/viewtopic.php?pid=43585#p43585, thank you very much.
In case anyone only using Excel for Mac is hoping to solve this via VBA macro, here’s the code I previously used.