code: function find_application_dir(applications_dir) {
  
    const files_in_applications_dir = fs.readdirSync(applications_dir);
  
    for (let i = 0; i < files_in_applications_dir.length; i++) {
      const file = files_in_applications_dir[i];
      if (!file.includes('Adobe After Effects'))
        continue;
  
      const app_dir = path.join(applications_dir, file);
  
      //If some wise-ass named a folder 'Adobe After Effects Plugins' or whatever and leaves
      //it in his applications directory, we don't want to choose it. We want to choose an application_dir
      //that's going to have an After Effects.app in it.
      if (find_application(app_dir) !== null)
        return app_dir;
    }
  
    return null;
  }
docs: *************************************************************************** Helpers ***************************************************************************