Skip to content

Instantly share code, notes, and snippets.

@isao
Forked from ChristopherA/Extract_URL_from_webloc.md
Created September 30, 2022 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isao/6253239263b3d042644b201df3e9b2eb to your computer and use it in GitHub Desktop.
Save isao/6253239263b3d042644b201df3e9b2eb to your computer and use it in GitHub Desktop.
Extract URL from Safari .webloc

Extract URL from Safari .webloc

bash one-liner

plutil -p example.webloc | sed -En 's/.*"(.*)"$/\1/p'

Convert all .webloc files in directory to .url files

webloc2url.sh - Converts .webloc (Mac) to .url (Windows) files.

https://github.com/flagsoft/webloc2url/

Safari will also open .url files, so I use that as my default.

Open .webloc and .url Linux

url-open.sh - open links contained in .URL and .webloc files in your default browser

https://gist.github.com/apfelchips/001b4ffb22c0578220595623f5546107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment