Created
December 12, 2019 03:36
-
-
Save lululau/61c280aa3477d3640a8329ca33974837 to your computer and use it in GitHub Desktop.
Safari Assistant Alfred Workflow Components
This file contains 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
ALSF_UID=$(cat ~/Library/Safari/Bookmarks.plist | plutil -convert xml1 -o - -- - | grep -A4 '<string>Docs</string>' | tail -1 | sed 's/<\/.*//;s/.*>//') | |
# Which folder to browse is passed via workflow/environment variables | |
ALSF_UID=$ALSF_UID ./alsf browse -q "$1" |
This file contains 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
ALSF_UID=$(cat ~/Library/Safari/Bookmarks.plist | plutil -convert xml1 -o - -- - | grep -A4 '<string>DevSites</string>' | tail -1 | sed 's/<\/.*//;s/.*>//') | |
# Which folder to browse is passed via workflow/environment variables | |
ALSF_UID=$ALSF_UID ./alsf browse -q "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment