script use to manipulate Preferences data