Last active
August 26, 2021 01:07
-
-
Save nicerobot/ad46cf894f527f2f35f71084836b02f8 to your computer and use it in GitHub Desktop.
Open URLs based on contents of a Chrome bookmarks-folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
folder="${1:-open}" | |
profile="${2:-Default}" | |
jq -r \ | |
'.roots.bookmark_bar.children[] | select(.name == "'"${folder}"'") .children[].url' \ | |
"${HOME}/Library/Application Support/Google/Chrome/${profile}/Bookmarks" \ | |
| while read url; do | |
open "${url}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment