Skip to main content
rjl26
Participant
November 5, 2018
Answered

app.open() is not a function

  • November 5, 2018
  • 1 reply
  • 2174 views

Using ExtendScript to develop with After Effects CC 2018.  The script worked in the development environment until a few days ago.

Now I have the error app.open is not a function.  And it is right: looking through the data browser, app refers to the ExtendScript Toolkit rather than AfterEffects.

The scrap of script below uses a working project file which I can load manually but cannot find a way to load through a script in ExtendScript debugging.

Suggestions gratefully received!

I am running:

Adobe After Effects CC 2018

ExtendScript Toolkit 4.0.0.1

Here is the nub of the issue in code - it really does not get more basic than this.

var my_file = new File("/Users/rl/Documents/Dev/AdobeData/candidates/tamara/tamararig.aep");

if (my_file.exists) {

    app.open(my_file); //fails on this line with app.open is not a function

}

This topic has been closed for replies.
Correct answer Martin_Ritter

I think you have to set After Effects in the dropdown above your code.

1 reply

Martin_Ritter
Martin_RitterCorrect answer
Legend
November 5, 2018

I think you have to set After Effects in the dropdown above your code.

rjl26
rjl26Author
Participant
November 6, 2018

Well, how embarrassing!  Thank you.  Solved my problem!

Martin_Ritter
Legend
November 6, 2018

Nevermind.

I can recommend this script:

ExtendScript Developer Utility - aescripts + aeplugins - aescripts.com

It let you execute your script-code right out of AE. Very helpful for UI design.

*Martin