got burned by typos in the UIAutomation docs. for future ref, its setPreferencesValueForKey not setPreferenceValueForKey in UIAApplication.