akaralar Posted April 26, 2016 Share Posted April 26, 2016 (edited) # 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. see https://github.com/akaralar/SafariHistorySearch/releases for latest version. I hope you like it! Edited April 26, 2016 by akaralar deanishe 1 Link to comment
Acidham Posted April 27, 2016 Share Posted April 27, 2016 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
deanishe Posted April 27, 2016 Share Posted April 27, 2016 Very handy workflow. There's a small bug (fat fingers?): On the item XML tag, the attribute should be called uid, not uidid. Link to comment
akaralar Posted May 1, 2016 Author Share Posted May 1, 2016 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
akaralar Posted May 1, 2016 Author Share Posted May 1, 2016 Very handy workflow. There's a small bug (fat fingers?): On the item XML tag, the attribute should be called uid, not uidid. Thanks deanishe, will correct that as well Link to comment
mchomicz Posted February 17, 2017 Share Posted February 17, 2017 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
deanishe Posted February 18, 2017 Share Posted February 18, 2017 FWIW, you can create a Safari History search with a File Filter pointed at ~/Library/Caches/Metadata/Safari/History mchomicz 1 Link to comment
mchomicz Posted February 18, 2017 Share Posted February 18, 2017 actually that worked thanks! Link to comment
xilopaint Posted February 22, 2017 Share Posted February 22, 2017 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
Aesir Zoe Posted November 8, 2017 Share Posted November 8, 2017 It seems not work in Alfred 3.5.1 Link to comment
xilopaint Posted November 8, 2017 Share Posted November 8, 2017 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. Aesir Zoe 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now