Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Async in AE extendscript?

  • Async in AE extendscript?

    Posted by Dan Berger on May 20, 2020 at 4:28 pm


    Is there a way to execute commands asynchronously in AE extendscript ?
    Something like the normal javascripts async function(){……} ?
    I’m trying to execute multiple instances of aerender.exe using the System.callSystem() function.
    Is it possible to run System.callSystem() asynchronously?


    Breton Brander replied 2 months, 3 weeks ago 3 Members · 2 Replies
  • 2 Replies
  • Andrew Roberts

    May 27, 2020 at 4:01 pm

    Not within the Extendscript code itself, but all calls to execute ES through an Adobe CEP panel are asynchronous and can have a callback function that executes when the ES is done.

  • Breton Brander

    December 1, 2023 at 6:35 pm

    Hi Dan,

    I believe you can accomplish what you’re hoping for like this:

    Solution 1:

    The solution below runs a command and does not wait for the result to return. Instead it outputs the result to a text file on your desktop.

    var command = ‘echo “Hello world!”‘
    var outputFile = “~/Desktop/output.txt”;
    system.callSystem(‘nohup ‘ + command + ‘ > ‘ + outputFile + ‘ 2>&1 &’)

    Solution 2:

    The solution below runs a command and does not wait for the result to return. The result goes nowhere so you won’t know how the command resolved.

    var command = ‘echo “Hello world!”‘;
    system.callSystem(‘nohup ‘ + command + ‘ > /dev/null 2>&1 &’)


    (I share similar ExtendScript solutions at the website linked above too)

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy