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

Accessing the DOM from UPX plugins

Explorer ,
May 10, 2021 May 10, 2021

Copy link to clipboard

Copied

I am trying to convert some Extendscript functions into the UPX environment but I'm having trouble accessing the DOM.  For instance this code worked with Extendscript

 

var orig_ruler_units = app.preferences.rulerUnits;
var orig_type_units = app.preferences.typeUnits;

app.preferences.rulerUnits = Units.PIXELS; 
app.preferences.typeUnits = TypeUnits.POINTS; 

 

But these same lines of code error out in the plugin because the attributes don't exist.  Is there any documentation on what is accessible via the UPX environment?  I know how I can find these for use via batchplay but if I can go through the DOM I would prefer that approach.

TOPICS
Actions and scripting

Views

1.4K

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
Adobe
LEGEND ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

Are you sure you're talking about 'the Ultimate Packer for eXecutables'?

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
Explorer ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

Sorry no, I reversed the letters UXP Unified Extensibility Platform.   I'll correct in the initial post too.

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
LEGEND ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

LATEST

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