writepreference
writepreference
NAME
,
VALUE

The writepreference statement modifies a preference value.

Parameters

This statement has two parameters:

name – name of preference to change.

value – new value for preference. This value is always supplied as text, it will be automatically converted to a number or Boolean value if necessary.

Description

This statement modifies a preference value. It is similar to setpreferencevalues, but only works with known Panorama preferences, and allows abbreviations of the preference name as long as the preference name is uniquely specified. This example sets the width of a new data sheet window to 800 points.

    writepreference "newwindowwidth",800

This feature also enables preference values to be set through a url. Like the example code above, this URL will set the width of a new data sheet window to 800 points.

    panoramax://writepreference?newwindowwidth=800

See Also

- Automatic Startup Database -- automatically open one or more databases when Panorama is launched.
- Confirmation Alerts -- Configuring alerts to confirm sensitive operations (deletions, etc.).
- getapplicationinfo( -- retrieves the value of an item in the application's plist, or a list of all plist items.
- getpreferenceclass( -- retrieves the class name of a preference value.
- getpreferencevalue( -- retrieves the value of a preference.
- info("preferencedomains") -- returns a carriage return delimited list of available preferences domains.
- preferences( -- retreives a list of preferences that have been stored.
- removepreferencevalues -- deletes one or more preference values.
- Scripting Language Configuration -- configuring the scripting languages available to Panorama (Perl, PHP, Python and Ruby).
- setpreferencevalues -- creates and/or modifies a preference value.

History

Version | Status | Notes
10.2 | New | New in this version.