Importing and Exporting bookmarks from one browser to another is not so easy task. Major browsers have in-built functionalities for this, but limited to selected file formats. :(
If you are facing problems regarding this, here is a fantastic solution for you which will convert different bookmark file formats into a compatible format. LinkaGoGo is an online converter for bookmark file formats. Select the source format and output format, browse the bookmark file from your computer and hit the convert button. Done!

LinkaGoGo converts files efficiently, without any error and in few seconds. It supports Internet Explorer, Netscape/Mozilla based browsers (Firefox, Flock etc.) (HTML), Safari (plist), Opera (adr), Maxthon, Lynx and XBEL (XML Bookmark Exchange Language) . So, you can convert bookmark files of these browsers/formats to export or import with other browsers or formats.
Hence, you don’t need any complicated script execution, or a separate software to convert bookmark file formats. :)
Link : LinkaGoGo