View Single Post
Quote:
Originally Posted by elektroglide View Post
i get an applescript error when i try to run this:

2009-10-12 19:54:03.779 defaults[4248:60f] Could not parse: {r=0,588235294118; g=0,588235294118; b=0,617647058824; a=1.0;}. Try single-quoting it.
The problem is that the floating point numbers for the r, g, and b values are using comma as the decimal number separator (e.g. "0,58", a common formatting convention outside the U.S. for expressing decimal fractions), but the defaults command expects a period (e.g. "0.58", the convention in the U.S.).

Presumably AppleScript is formatting those numbers with commas based on your Language & Text locale settings in System Preferences. I'm not sure off-hand how to convince AppleScript to use the U.S. format other than to temporarily change your number format settings in System Preferences.