This worked. Thanks Kaustubh.

On Apr 15, 4:02 pm, Kaustubh Kulkarni <kaust...@fusion-software.com>
wrote:
> The Unit Converter Widget is broken in Mac OS X 10.5.6: the left and  
> right pop-up menus do not match, and Apple's code assumes they do. On  
> the left menu, the Australian dollar appears at the top; on the right  
> menu, it's the US Dollar. As a result, conversions come out incorrectly!
>
> To fix this problem, make a copy of /Library/Widgets/Unit  
> Converter.wdgt on your Desktop, Control-click on it and choose Show  
> Package Contents from the pop-up menu, then open the UnitConverter.js  
> file in a text editor. Search for "USD" (with the quotes). There  
> should be only one matching line:
> if (a.iso == "USD") return -1;
> Delete this line. Then, delete the else at the start of the next line,  
> i.e. change the line from this...
> else if (a.name < b.name) return -1;
> ...to this...
> if (a.name < b.name) return -1;
> Save the changes and close the document. I suggest keeping the  
> original widget in /Library/Widgets, and installing the corrected  
> version in ~/Library/Widgets, so that the system's version remains  
> untouched.
>
> [robg adds: When originally posted, I thought this was merely a  
> display glitch, but it's not -- the calculations simply won't work  
> properly with the two lists not being the same. You can test this  
> yourself by converting any number in the default widget as it appears  
> -- enter 55 in the left-side box, for instance, with the left pop-up  
> on Australian Dollar and the right on US Dollar, and you'll see that  
> the result is also shown as 55. Clearly that's not correct. This hint  
> fixes that problem. Sorry for the confusion.]
> On 15-Apr-09, at 3:51 PM, Vikas Tandon wrote:
>
>
>
> > Perfect, it worked. Thanks a lot!!
>
> > However, this now brings me to the original reason I had deleted it.  
> > Since I installed Safari 4.0, the curreny converter gives all  
> > incorrect values. I checked on Yahoo Finance (the source of the  
> > exchange rates) and the rates are fine there.
>
> > Any ideas?
>
> > Thanks once again...
>
> > On Wed, Apr 15, 2009 at 3:43 PM, Shreeharsha J N <shreeharsha...@mac.com
> > > wrote:
> > Take this zipped file & try it.
>
> > On 15-Apr-2009, at 14:48, Vikas wrote:
>
> > I have accidentally deleted the Unit Converter Widget
> > (unitconverter.wdgt) that comes bundled with Mac OS 10.5. Not just
> > removed from Dashboard, I have physically deleted the file from
> > library. Now I find no way to get that file back - not from the DVD or
> > from the web.
>
> > Can anyone please tell me where I can get the widget?
>
> > Thanks

Reply via email to