Skip to content

Instantly share code, notes, and snippets.

@peccu
Forked from codebycliff/ReadingList
Last active February 26, 2023 17:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peccu/3771222d36fb51643c3bb894a1f7248a to your computer and use it in GitHub Desktop.
Save peccu/3771222d36fb51643c3bb894a1f7248a to your computer and use it in GitHub Desktop.
AppleScript command for adding entry to safari reading list.

Add to Reading List from Command

Install

Add contents of ReadingList.sh to .bashrc or .zshrc etc.

Usage

atrl URL

Example

atrl http://google.com

function atrl(){
if [ -z $1 ]
then
echo Add To Reading List
echo
echo Usage: atrl URL
return
fi
osascript -e 'tell application "Safari" to add reading list item "'$1'"'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment