Saving out a w3d member (off topic?) 2003-12-13 - By Mark Hill
Back Hi,
Actually the FileXtra isn't on the DirMX CD, nor included with Director, you have to download and install it yourself from Kent Kerstens website at http://www.kblab.net/xtras/index.html.
It's an excellent free xtra, and I recommend you check it out... but there is a way to achieve what you're after without it using the built-in getNthFileNameInFolder() function:
on xImportFolder(tFolderPathName, tSearchSuffix) tNumIts = 5000 -- the number of files to search tFileList = [] repeat with i = 1 to tNumIts n = getNthFileNameInFolder(tFolderPathName, i) if n = EMPTY then exit repeat c = n.char.count s = tSearchSuffix.char.count - 1 if n.char[c-s..c] = tSearchSuffix then xImportFile(n) end repeat end
on xImportFile(filename) --do your thang :) put filename end
HTH :)
Mark Hill xonko interactive http://www.xonko.com On 14/12/2003, at 10:44 AM, NoiseCrime wrote:
> >> Also, I am using file I/O to allow the user (me) to import the files >> one by one. Is there a way in File I/O to batch import a folder? I >> realize this is off-topic for this list. > > Yes use filextra instead. It should be installed in your xtras folder, > or > perhaps its in the goodies folder of your Director CD I forget now, > but that > in conjunction with fileIO can do everything you want. You should find > a pdf > with the xtra that explains all its features and functions. __ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|