Preferences
Instance Methods
deletePref
Returns: boolean
Since: 27.0
Deletes a preference from the preference file.
Parameters
PREFType enum value. Optional; defaults to PREF_Type_MACHINE_SPECIFIC if not specified.getPrefAsBool
Returns: boolean
Since: 27.0
Retrieves a preference value from the preferences file, and parses it as a boolean.
Parameters
PREFType enum value. Optional; defaults to PREF_Type_MACHINE_SPECIFIC if not specified.getPrefAsFloat
Returns: number
Since: 27.0
Retrieves a preference value from the preferences file, and parses it as a float.
Parameters
PREFType enum value. Optional; defaults to PREF_Type_MACHINE_SPECIFIC if not specified.getPrefAsLong
Returns: number
Since: 27.0
Retrieves a preference value from the preferences file, and parses it as a long (number).
Parameters
PREFType enum value. Optional; defaults to PREF_Type_MACHINE_SPECIFIC if not specified.getPrefAsString
Returns: string
Since: 27.0
Retrieves a preference value from the preferences file, and parses it as a string.
Parameters
PREFType enum value. Optional; defaults to PREF_Type_MACHINE_SPECIFIC if not specified.havePref
Returns: boolean
Since: 27.0
Returns true if the specified preference item exists and has a value.
Parameters
PREFType enum value. Optional; defaults to PREF_Type_MACHINE_SPECIFIC if not specified.reload
Returns: boolean
Since: 27.0
Reloads the preferences file manually. Otherwise, changes to preferences will only be accessible by scripting after an application restart.
savePrefAsBool
Returns: boolean
Since: 27.0
Saves a preference item as a boolean.
Parameters
PREFType enum value. Optional; defaults to PREF_Type_MACHINE_SPECIFIC if not specified.savePrefAsFloat
Returns: boolean
Since: 27.0
Saves a preference item as a float.
Parameters
PREFType enum value. Optional; defaults to PREF_Type_MACHINE_SPECIFIC if not specified.savePrefAsLong
Returns: boolean
Since: 27.0
Saves a preference item as a long.
Parameters
PREFType enum value. Optional; defaults to PREF_Type_MACHINE_SPECIFIC if not specified.savePrefAsString
Returns: boolean
Since: 27.0
Saves a preference item as a string.
Parameters
PREFType enum value. Optional; defaults to PREF_Type_MACHINE_SPECIFIC if not specified.saveToDisk
Returns: boolean
Since: 27.0
Saves the preferences to disk manually. Otherwise, changes to preferences will only be accessible by scripting after an application restart.