applehelpwriter

Search Safari Reading List

Apr 9th, 2013
660
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
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×