• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Is there an equivalent for app.name in PPro JSX?

Enthusiast ,
Apr 07, 2017 Apr 07, 2017

Copy link to clipboard

Copied

The JSX SDKs for Photoshop, Illustrator, and Audition all return the respective names of their application via the command

app.name;

Adobe Premiere and After Effects do not.

Premiere's "app" object has the following properties.

version

build

getPProPrefPath

getPProSystemPrefPath

project

anywhere

encoder

userGuid

getAppPrefPath

getAppSystemPrefPath

csxs

metadata

getLookInfo

Several of those could be used to jerry rig the info out PPro, but I was wondering if there was a more definitive and straightforward approach.

TOPICS
SDK

Views

557

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Apr 08, 2017 Apr 08, 2017

Not sure about the ExtendScript side but we used to do the check on the HTML/JS side like this:

var host_env = JSON.parse(window.__adobe_cep__.getHostEnvironment());

var ppro = host_env.appId === "PPRO" || host_env.appName === "PPRO";

var aeft = host_env.appId === "AEFT" || host_env.appName === "AEFT";

I hope this helps.

Thomas

Votes

Translate

Translate
Participant ,
Apr 08, 2017 Apr 08, 2017

Copy link to clipboard

Copied

Not sure about the ExtendScript side but we used to do the check on the HTML/JS side like this:

var host_env = JSON.parse(window.__adobe_cep__.getHostEnvironment());

var ppro = host_env.appId === "PPRO" || host_env.appName === "PPRO";

var aeft = host_env.appId === "AEFT" || host_env.appName === "AEFT";

I hope this helps.

Thomas

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 08, 2017 Apr 08, 2017

Copy link to clipboard

Copied

Thomas_Szabo  wrote

Not sure about the ExtendScript side but we used to do the check on the HTML/JS side like this:

var host_env = JSON.parse(window.__adobe_cep__.getHostEnvironment());

var ppro = host_env.appId === "PPRO" || host_env.appName === "PPRO";

var aeft = host_env.appId === "AEFT" || host_env.appName === "AEFT";

I hope this helps.

Thomas

Perfect!  Works rock solid for all apps.  Thanks Thomas!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 10, 2017 Apr 10, 2017

Copy link to clipboard

Copied

LATEST

For the JS/ExtendScript context there's the BridgeTalk object.

Re: Is there an equivalent for app.name in Aep JSX?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines