FORUMS: list search recent posts

Extendscript .getFiles function is undefined

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Wayne Grech
Extendscript .getFiles function is undefined
on Dec 23, 2019 at 4:22:08 pm

Scripting newbie here, I'm trying to figure out a way of creating an array and populating it with all the files within a user specified folder.

This is what I got:

var myFolder = Folder.selectDialog ("Select a folder");
var allfiles = myFolder.getFiles();

however it just gives me an error telling me that myFolder.getFiles is undefined.
I've been looking around online and everyone seems to be using this function for the same thing i'm trying to achieve.

Would appreciate any help thank you.


Return to posts index

Dan Ebberts
Re: Extendscript .getFiles function is undefined
on Dec 23, 2019 at 9:01:10 pm

That's the right function. Your code works fine for me--I'm not sure why it doesn't work for you. Maybe a permissions thing? Do you have the preference set that allows scripting to access the network?

Dan



Return to posts index

Wayne Grech
Re: Extendscript .getFiles function is undefined
on Dec 30, 2019 at 8:50:34 am

Hey Dan, thanks for the suggestion but it seems that those permissions are enabled and I still get the same error for some reason.. any other ideas?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]