This code will give you the path to the enclosing folder of the AE applicationexplorer wrote: If there is what would be a path returned by that dialog look like if one would navigate to the AE instal dir?
Windows:
var appFolderPath = String(Folder.appPackage);
Mac:
var appFolderPath = Folder.appPackage.parent.toString();
-Lloyd