• Follow us on Twitter
  • RSS
We are back, with a new look ... but same old love of all things Apple. close

  • News
  • Stories
    • Opinions
    • Learning
    • Reviews
  • Write to us

Tag Archive for: dashboard

Unit Converter Dashboard Widget cranky

3 Comments/ in Learning / by Jimmy Liew
11 March, 2009

The Unit Converter Dashboard widget provided by Apple has been giving me wrong conversion since the last OS X 10.5.6 update. Although the economy is bad, but not to the extend where a unit of US$ showed up as an astonishing S$3.751.

Going back to my Internet best friend – Google – I found that it was a coding error in the javascript file for the widget as shown in this Mac OSX Hints page. It resulted in the drop down menus for the countries not tallying with the rates that were downloaded. For example, if you choose the top two countries on the drop down menu, on the left it shows Australia and on the right USA. But both rates ended up $A1 = US$1, which is incorrect.

Unit Converter gives wrong info

Thankfully, the work around is pretty simple.

Firstly, locate the widget file at /Library/Widgets/ as “seen here”. Next, drag it onto your Desktop to create a copy of the Unit Converter.wdgt. Right click on the file and click Show Package Contents to access the files that run the widget.

Open this file UnitConverter.js with your text editor and search for this line: if (a.iso == "USD") return -1;. Delete that line, and on the next line which reads: else if (a.name < b.name) return -1;, delete the word else from that line. (see image below)

converter-screwed-4

Once that is done, save the file and drag it into the Widgets folder found in your User folder: ~/Library/Widgets so that you won’t overwrite the system’s copy.

Double click the file to make sure the edited copy is installed, and you should be able to see that the country lists on both drop downs are the same, and the conversion is correct.

converter-screwed-5

MacBook Pro B 005 300x250

Have something new?

Got a tip? Launching a new app? Or maybe an exclusive... Let us know.
Email us

Latest Tweets

  • Want something like Kinect on your Mac - check out Leapmotion http://t.co/s7cebZe8 http://t.co/TRpS0M4y
    21 May, 2012 - 11:04 pm
  • RT @theloop: Samsung's bullshit Galaxy pre-order numbers http://t.co/wMXcMxG3
    18 May, 2012 - 10:47 pm
  • Probably not as epic as Diablo 3 but this might come close ... looking forward to Infinity Blade: Dungeons! http://t.co/2bpgGkyx
    18 May, 2012 - 1:20 pm

Popular Posts

  1. Setting up MMS for StarHub and M1 iPhone users
  2. Setting up Tethering on Starhub and M1
  3. Getting into the US iTunes Store with iTunes Gift Card

Archives

Categories

© Copyright - iHeartApple - Wordpress Theme by Kriesi.at