Advertisement
applehelpwriter

Search Safari Reading List

Apr 9th, 2013
996
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --paste the following into AppleScript Editor or Automator 'run applescript' action
  2. --10.7 and 10.8 only
  3.  
  4. display dialog ("Enter the string to search for: ") default answer "Search Safari Reading List" buttons {"Cancel", "Search"} default button "Search"
  5.  
  6. set searchTerm to the text returned of the result
  7.  
  8. do shell script "strings ~/Library/Safari/Bookmarks.plist | grep -i '" & searchTerm & "' | awk '{ print FNR \"\t\" $0}' | open -f"
  9.  
  10. --EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement