I've just gotten around to testing the script out and have come across the error relating to a table of contents on line 13.
I tried deleting the table of contents to see if the script would run but I'm still getting the error.
The only change I made to the script was I changed this line from:
var myFilePath = File.openDialog("Choose where to save your Hyperlinks"),
to
var myFilePath = File.saveDialog("Choose where to save your Hyperlinks"),
As I'm not a coder, could someone tell me how to revise the script in order to overcome this error?
Thanks again