studioDocumentPreferences

Syntax

Document.studioDocumentPreferences;

Access

readonly

Parameters

Return value StudioDocumentPreference

The WoodWing Studio Document preference settings object.

Description

The studioDocumentPreferences property gives access to the WoodWing Studio Document preference settings by returning a StudioDocumentPreference object. Use this object to read or change document-level preferences such as the object style application behavior.

Examples

Read the current document-level object style preference

// Get the applyObjectStyle preference for the active document.
var pref = app.activeDocument.studioDocumentPreferences.applyObjectStyle;
alert("Apply object style: " + pref);

Set the document-level object style preference

// Always reapply the object style when updating an article.
app.activeDocument.studioDocumentPreferences.applyObjectStyle =
  ApplyObjectStyleOptions.REAPPLY_WHEN_UPDATING;

Supported versions

Adobe Version Supported
2023
2024
2025
2026

See also