Jump to content

Currency converter that works offline, with favorite currencies

Recommended Posts

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.


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 







Edited by bevesce

Share this post

Link to post

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 by Buja

Share this post

Link to post

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.




Edited by tnaseem

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...