Creating a Safari webarchive from the command line

The author discusses the process of creating a local archive of bookmarked web pages using Safari webarchives, highlighting the advantages of saving entire pages as a single file for offline access and backup. They also share insights on automating the creation of webarchive files using Swift scripting. The author faced challenges with some existing tools and created their own script using WKWebView and WKNavigationDelegate for error handling. The script successfully created webarchives for 85% of their bookmarks, resolving various issues encountered during the archiving process and improving error reporting. The final script is available on GitHub for others to use.

https://alexwlchan.net/2024/creating-a-safari-webarchive/

To top