>it could be because the script instantiates the xtra on every iteration...
>
>try moving the xtra instantiation code before the loop starts, and
>set theFile = 0 after the loop finishes, so that only a single
>instance of the xtra is used for all operations.

Good idea, but setting theFile = 0 eliminates the instance of the file 
Xtra. The script I was using creates an instance each time through the 
loop, then disposes of it when it's done.

I found the problem, though. I was creating the file names by taking the 
name of the cast member and appending ".txt". In the process, some of the 
file names were too long for the Mac.

Error trapping doesn't help much--when you try to create a file with a name 
that's too long, Director simply crashes. It doesn't even return an error. 
Bad, bad.

I'm doing it on Windows now--longer file names there.


Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to