add
Syntax

ManagedArticles.add();
Parameters
Return value ManagedArticle
The newly created ManagedArticle scripting object.
Description
The add() method creates a new ManagedArticle scripting object and adds it to the ManagedArticles collection. The Article is not yet created on Studio Server at this point. Call create() on the returned ManagedArticle object to save it to Studio Server.
Examples
Add a new ManagedArticle and create it on Studio Server
// Add a ManagedArticle scripting object, set its metadata, then create it on Studio Server.
var article = app.activeDocument.managedArticles.add();
article.entMetaData.set("Core_Name", "My Article");
article.entMetaData.set("Core_Publication", "WW News");
article.create([app.selection[0]]);
Supported versions
| Adobe Version | Supported |
|---|---|
| 2023 | ✔ |
| 2024 | ✔ |
| 2025 | ✔ |
| 2026 | ✔ |