Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script to replace fileGetDialog()?

  • Script to replace fileGetDialog()?

    Posted by Tim Stonesifer on April 22, 2010 at 3:47 pm

    I have a script which uses a line like:

    var nameFile = fileGetDialog("Select a text file to open.", "TEXT txt");

    However, the file I’m grabbing is always in the same location… I’ve used code like:

    var nameFile = "/v/file.txt"
    or var nameFile = "v:/file.txt"

    Nothing seems to work – I’m surely getting the syntax wrong. Can anyone point me in the right direction? Thanks.

    Tim Stonesifer replied 16 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 22, 2010 at 4:55 pm

    Try this:

    var nameFilePath = “/v/file.txt”;
    var nameFile = File(nameFilePath);

    Dan

  • Tim Stonesifer

    April 22, 2010 at 4:58 pm

    Awesome, that’s it! Thanks Dan!

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