Jump to content
akaralar

Safari History Search workflow

Recommended Posts

# SafariHistorySearch

Alfred workflow to search Safari history written in swift.
 
#Usage
`shs <SEARCH_TERMS>`
 
Separate search terms with spaces if you want to search for more than one word. ie: 
 
`shs github safari`
 
 
Each word is searched separately. If you want to search for a phrase, 
surround the phrase with double quotes, ie:  
 
`shs "Alfred Workflow to Search Safari History"` 
 
The results contain all search terms. This workflow searches the page url, page title and page body if available.
 
 
I hope you like it!
Edited by akaralar

Share this post


Link to post

Not working at all. Whats wrong, any idea?

[ERROR: alfred.workflow.input.scriptfilter] Code 5: dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /Users/me/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AE4DAEB8-CFB6-42E3-BD2F-D13E764C6CFD/./safariSearch
  Reason: image not found
[ERROR: alfred.workflow.input.scriptfilter] Code 5: dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /Users/me/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AE4DAEB8-CFB6-42E3-BD2F-D13E764C6CFD/./safariSearch
  Reason: image not found

Share this post


Link to post

Hey acidham, i think you need xcode and swift also installed on your system right now. I'm working on a fix and post it here when I update the workflow!

 

 

Not working at all. Whats wrong, any idea?

[ERROR: alfred.workflow.input.scriptfilter] Code 5: dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /Users/me/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AE4DAEB8-CFB6-42E3-BD2F-D13E764C6CFD/./safariSearch
  Reason: image not found
[ERROR: alfred.workflow.input.scriptfilter] Code 5: dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /Users/me/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AE4DAEB8-CFB6-42E3-BD2F-D13E764C6CFD/./safariSearch
  Reason: image not found

Share this post


Link to post

Seems this workflow is broken. It brings up the history results but when i hit enter on one of them it doesn't open the link in safari... 

 

here is the tail end of the debug (the initial bit seems to be working since i get results):

 

Quote

[2017-02-17 16:30:18][input.scriptfilter] Processing output of 'action.openfile' with arg 'https://www.google.com'

 

Share this post


Link to post
On 2/17/2017 at 0:33 PM, mchomicz said:

Seems this workflow is broken. It brings up the history results but when i hit enter on one of them it doesn't open the link in safari... 

 

here is the tail end of the debug (the initial bit seems to be working since i get results):

 

 

 

I managed to fix the issue by simply changing the Open File object for a Open URL object in the workflow.

Share this post


Link to post
2 minutes ago, x7x7 said:

It seems not work in Alfred 3.5.1

 

 

It's not an issue with Alfred version. High Sierra has introduced some changes on how the history is stored.

 

You can use this workflow for searching Safari history which is HS compatible.

Share this post


Link to post

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
×