Jump to content

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
Link to comment

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
Link to comment

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
Link to comment
  • 9 months later...

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'

 

Link to comment
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.

Link to comment
  • 8 months later...

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...