bevesce Posted April 20, 2013 Posted April 20, 2013 (edited) Convert currency Alfred workflow and python script that converts currencies using http://www.google.com/ig/calculator it's way faster than https://www.google.com/finance/converter Converter works offline, when there is no internet connection currency exchange rate from the last time when script/workflow were used to convert given pair of currencies. Usage Just type keyword and argument: 10 usd in jpy - displays yen and favorite currencies 10$€ - displays euro and favorite currencies 10 usd - displays favorite currencies 10 - uses default currency - can be specified in convertcurrency.py no argument - uses default currency and 1 as amount Tapping return ↩ in workflow pastes result of conversion to active application. Tapping command+return ⌘+↩ marks currency as favorite - it will be automatically displayed always when converter Download: https://github.com/bevesce/Convert-Currency/raw/master/Convert%20Currency.alfredworkflow Source: https://github.com/bevesce/Convert-Currency Edited April 20, 2013 by bevesce Buja 1
Buja Posted April 20, 2013 Posted April 20, 2013 (edited) Great workflow! Good job. Just one small side effect (i hope), is that a folder called test was added to my desktop with currency information... any ideas why? Edited April 20, 2013 by Buja
Tarique Naseem Posted November 1, 2013 Posted November 1, 2013 (edited) I know it's been a while, but I just grabbed this workflow with the same issue as you, Buja. Not sure why the author hasnt replied to you, but it's simple enough to fix, if you don't mind digging into the Python script. Go to the Convert Currency workflow. Double click the Script Filter, then click on 'Open Workflow Folder' in the dialog that comes up. A Finder window will pop up. In there, you need to edit the 'filelist.py' script. A few lines down, in that script, you'll see: dir_path = '~/Desktop/test/' Change this line to: dir_path = 'test/' And save the file. This will now just create the 'test' folder in the currency converter folder. So, no more unsightly temp folders on the desktop. There is probably a better way, but I can't really be bothered looking, so this will have to do for now. Hope this helps anyone who comes across this workflow. Cheers, Tarique. Edited November 1, 2013 by tnaseem
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