mluks Posted August 5, 2015 Share Posted August 5, 2015 Hey guys, I've got an Excel file with two columns being A. Names and B. a Unique Identifier for everyone Would there be any way for Alfred to return the 'Unique Identifier' value based on the name I type in the Alfred search bar? This would be like doing a vlookup of sorts directly within Alfred Not sure whether this is even remotely possible... Thanks so much for your help! Marvin Link to comment
deanishe Posted August 5, 2015 Share Posted August 5, 2015 It's certainly possible, but you'd have to write a workflow that can read Excel files and use a Script Filter to do the searching. The first part is the potentially tricky bit, the second part is trivial. Link to comment
mluks Posted August 5, 2015 Author Share Posted August 5, 2015 Thanks @deanishe. If anyone has any workflows to get me started then, I'd very much appreciate it Link to comment
deanishe Posted August 5, 2015 Share Posted August 5, 2015 I've made a demo workflow for you (written in Python). The source code in a GitHub repo and you can download the workflow file from the repo to give it a test run. Hopefully, it should do what you want if you change the EXCEL_FILE variable on line 29 in search.py to point to the Excel file you want to pull data from. If it needs more customisation, I encourage you to try to figure that out for yourself Here's the documentation for the Alfred-Workflow library it's based on, and here's the documentation for the xlrd library used to read the Excel file. Here's some more information about working with Excel files from Python. 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