Posts

Showing posts from July, 2021

Opening Apple webloc files

Image
As you can imagine, transitioning 23 years of user data from Mac to Linux, has a few issues to overcome. One minor frustration was not being able to open .webloc files in Ubuntu. Webloc is very small XML file that is basically a URL. On Mac OS it's quite convenient to just drag your browser URL to the desktop or a folder to save the location. My old data is littered with these, so just being able to click them & open them as intended is helpful. To open these files in Linux I created a quick-fix shell script to extract the URL & pass it to google-chrome. So you can double-click .webloc files & they just open in Chrome - nice! This is my first attempt at doing anything like this, so it was a nice easy place to start to understand creating a script, running it, passing in a file, etc 1) Create a shell script to process the xml. I chose to do this with text parsing tools included by default & not install something like xmllint because the scope of this exercise is so ...