SOLVED How do I programmatically “Apply” changes to Preferences?