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

maybe a bug with $.getenv()

Community Beginner ,
Oct 04, 2021 Oct 04, 2021

Copy link to clipboard

Copied

ExternalObject.AdobeXMPScript = void 0 === ExternalObject.AdobeXMPScript ? new ExternalObject("lib:AdobeXMPScript") : ExternalObject.AdobeXMPScript;
var xmpData= new XMPMeta(app.project.xmpPacket);
$.setenv(xmpData.getProperty(XMPConst.NS_XMP_MM, "DocumentID").value, []);

alert(
$.getenv(xmpData.getProperty(XMPConst.NS_XMP_MM, "DocumentID").value)
)

 

on Mac it returns "" ,

on Win it returns null

 

IMAGE 2021-10-04 21_38_08.jpgIMAGE 2021-10-04 21_38_21.jpg

Any idea?

TOPICS
Scripting

Views

118

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
Community Expert ,
Jan 30, 2023 Jan 30, 2023

Copy link to clipboard

Copied

LATEST

Could be a bug with your version of AE. I just tested this and it's working in AE 2022:

 

 

$.setenv('mybar', 'abc');
$.getenv('mybar'); // 'abc'

 

 

Here's some info on those methods: https://extendscript.docsforadobe.dev/extendscript-tools-features/dollar-object.html?highlight=geten...

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