Jump to content

How do I add Safari history to default search results?


Recommended Posts

  • 2 months later...

(a few months later)

 

http://www.alfredforum.com/topic/8783-safari-history-search-workflow/is probably the closest you can get.

 

The only way to get Safari history in default results is to use an external program that watches your History.db file and exports its contents to Spotlight-indexable files.

 

But doesn't Spotlight already index Safari history? It has an option for it in the prefs, and results appear when I do a spotlight search...

Link to comment

Yup! I've been digging into this for a Safari workflow I'm working on.

It stores a whole bunch (many thousands) of .webhistory files in ~/Library/Caches/Metadata/Safari/History
 
Drag one of those to a File Filter to search your Safari history. I wouldn't recommend adding your history to your default scope, as the entries might overwhelm your other results.
 
The UTI is com.apple.safari.history
 
Safari also exports its bookmarks (to ~/Library/Caches/Metadata/Safari/Bookmarks with the extension .webbookmark and UTI com.apple.safari.bookmark).
 
 
OmniFocus also exports its metadata to files under ~/Library/Caches/Metadata. I hope this is something a lot of apps start doing. It's very handy.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...