Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Run an explorer windows from After effects

  • Run an explorer windows from After effects

    Posted by Martin Jean-sébastien on December 2, 2016 at 8:36 am

    Hello,
    I try to run an explorer windows via after effects script. My script is based on this :

    var path = tabBtns_foldersSpecific_path[myNumber];

    if($.os.indexOf(“Win”) != -1){
    cmd = “explorer ” + String(path);

    }else{
    cmd += ((“open \”” + String(myGoodPath)) + “\””); // change var path for Mac
    }
    alert(cmd);
    try {
    system.callSystem(cmd);
    }catch (e){
    alert(e);
    }

    My « path » variable returns :“/e/RESSOURCES “
    This variable is defined with this command :
    Var myFolderPath = Folder.selectDialog();
    Path = String(myFolderPath);

    But After effects does not open the correct folder (it opens the default one : “Documents”).
    I tried to do it manually, and what is working is : “e:\\ RESSOURCES “

    It seems that the good string is with 2 backslashes (“\\”).
    Any idea of a solution?
    Thank you!

    Martin Jean-sébastien replied 9 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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