Edit in GitHubLog an issue

Host Environment

Sometimes it's necessary to find out the host environment where a plugin or script is running. You can find a range of information such as the host OS, locale, home folder, installed application version, etc, by using UXP APIs.

System requirements

Please make sure your local environment uses the following application versions before proceeding.

  • InDesign v18.5 or higher
  • UDT v1.9.0 or higher
  • Manifest version v5 or higher

Example

Copied to your clipboard
async function foo() {
const { host, versions } = require('uxp');
const osInfo = require('os');
console.log(`System information: ${osInfo.platform()} v${osInfo.release()}`);
console.log(`Application: ${host.name} v${host.version} powered by ${versions.uxp}`);
}

Reference material

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.