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.
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
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
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!
Copy link to clipboard
Copied
For the JS/ExtendScript context there's the BridgeTalk object.