has
Syntax

EntMetaData.has(key);
Parameters
key string
The property key.
Return value boolean
true if the property with the given key exists, false otherwise.
Description
The has() method returns true if the property with the given key exists in the metadata collection, or false if it does not.
Examples
Check whether the document is managed by Studio Server
// Check if the active document has a Studio Server ID.
var md = app.activeDocument.entMetaData;
if (md.has("Core_ID")) {
var id = md.get("Core_ID");
alert("Document is managed by Studio Server with ID: " + id);
} else {
alert("Document is not managed by Studio Server.");
}
Supported versions
| Adobe Version | Supported |
|---|---|
| 2023 | ✔ |
| 2024 | ✔ |
| 2025 | ✔ |
| 2026 | ✔ |