Skip to content

Instantly share code, notes, and snippets.

@ChristopherA
Last active September 30, 2022 16:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ChristopherA/8b0a071a5722cc3fb56d9dfbb5ca3fe6 to your computer and use it in GitHub Desktop.
Save ChristopherA/8b0a071a5722cc3fb56d9dfbb5ca3fe6 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