Skip to content

Instantly share code, notes, and snippets.

@yismailuofa
yismailuofa / get-books.sh
Created May 5, 2024 17:33
Get URL Schemes For Your Apple Books on MacOS
#!/bin/bash
# Path to the BKLibrary file
BKLIBRARY_PATH=~/Library/Containers/com.apple.iBooksX/Data/Documents/BKLibrary
# Check if BKLibrary file exists
if [ ! -f "$BKLIBRARY_PATH/BKLibrary-"*".sqlite" ]; then
echo "BKLibrary file not found. Please make sure Books app is installed and has been opened at least once."
exit 1
fi