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

How to invoke JavaScript/ExtendScript for Premiere Pro CC in Mac OS

Enthusiast ,
Aug 29, 2016 Aug 29, 2016

Copy link to clipboard

Copied

Looking for a way to run JavaScript aka ExtendScript in Premiere Pro CC

Here's what I've got for other Adobe Apps, using AppleScript:

tell application "Adobe After Effects CC 2015"

  activate

  set SomeExtendScript to "ThisVariable='Runs This Js Code';"

  DoScript SomeExtendScript

end tell

tell application "Adobe Photoshop CC 2015.5"

  activate

  set SomeExtendScript to "ThisVariable='Runs This Js Code';"

  do javascript SomeExtendScript

end tell

tell application "Adobe Illustrator"

  activate

  set SomeExtendScript to "ThisVariable='Runs This Js Code';"

  do javascript SomeExtendScript

end tell

But so far nothing for Premiere.

tell application "Adobe Premiere Pro CC 2015"

  activate

  set SomeExtendScript to "ThisVariable='Runs This Js Code';"

  -- Does not work: DoScript SomeExtendScript

  -- Does not work: do javascript SomeExtendScript

  -- Does not work: do script SomeExtendScript

end tell

TOPICS
SDK

Views

3.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

correct answers 1 Correct answer

Adobe Employee , Aug 29, 2016 Aug 29, 2016

ExtendScript = Adobe-flavored JavaScript. Very similar. 

For other Adobe products AppleScript has been the key to doing that.

Yes, but there's no need to limit your solution to one platform!

I'd be curious to see what you're doing, in AE.

Instead of triggering ExtendScript from some external database-driven system, you can put buttons in an HTML5 (JavaScript-based) panel for the user's convenience.

Here's the PProPanel sample; the other samples in the repository have prettier HTML and use modern

...

Votes

Translate

Translate
Enthusiast ,
Aug 30, 2016 Aug 30, 2016

Copy link to clipboard

Copied

Great, so the only step I'm aware of having skipped was signing the .zxp bundle, under the assumption the PlayerDebugMode CLI command would be sufficient.  Any other things that might keep your PProPanel from appearing under menu Window > Extensions?

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
Adobe Employee ,
Aug 30, 2016 Aug 30, 2016

Copy link to clipboard

Copied

Sure; send me your panel directory. [b b b at adobe dot com]

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
Adobe Employee ,
Aug 30, 2016 Aug 30, 2016

Copy link to clipboard

Copied

I see the problem; documentation ambiguity!

Put /PProPanel directly into /extensions, not into a /PanelDir subdirectory. I meant /PanelDir to imply "your panel's directory", but you're not the first to run into that doc bug...

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 ,
Aug 30, 2016 Aug 30, 2016

Copy link to clipboard

Copied

I love an easy fix.  Extensions now active, and I'm able to run the panel, but I'm getting a bunch of undefined alerts when I launch it.

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
Adobe Employee ,
Aug 30, 2016 Aug 30, 2016

Copy link to clipboard

Copied

<sigh> that shows you're up to date; that's a typo in the current repo version. I sent you a slightly older version (which loads and runs) via email, and will try to fix the typo tomorrow...

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 ,
Aug 30, 2016 Aug 30, 2016

Copy link to clipboard

Copied

Ok, no worries.  I didn't get the email yet, but all told this is all looking great.  Most important from here is just to build something from scratch that can send an API call to Premiere.  Thanks again.

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 ,
Aug 30, 2016 Aug 30, 2016

Copy link to clipboard

Copied

If you get a chance and can explain the typo, that would be great.

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
Adobe Employee ,
Aug 30, 2016 Aug 30, 2016

Copy link to clipboard

Copied

I can explain the failure, though haven't hunted down the typo.

In /PProPanel/jsx/Premiere.jsx, the sample defines a big ol' blob of ExtendScript functions, in a structure called "$._PPP_".

Somewhere between testing and posting the most recent updates, we (probably I) introduced an errant brace, comma, or semi-colon, somewhere in that blob.

I haven't yet gone through the file and diff'd it against previous, looking for the problem.

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