At 10:33 PM -0700 7/15/2001, Troy Rollins wrote:
>I have a folder path stored in a variable. How do I list its files in a
>field without changing my defaultFolder value? I would ideally like to
>perform a series of functions on the files, but have yet to be able to
>address commands to them without changing my defaultFolder (which is a
>problem).

Try storing the defaultFolder in a variable, then restoring it:

  put the defaultFolder into storedDefaultFolder
  set the defaultFolder to folderIWantToList
  put the files into field "List of Files"
  set the defaultFolder to storedDefaultFolder

>Obviously, Rev complains a LOT about such a structure, but the documentation
>is not at all clear about what it should/could be. (Don't get me wrong, the
>documentation has gotten MUCH better, but for those of us that have been
>using Director for the last 10 years, it's very lean on practical examples.)

I'll take it under advisement, as they say. ;-)

I do agree that more working examples are needed. One of the things I'm
planning is a Cookbook with short handlers and code snippets to do various
useful things. Please do send me any requests/ideas for the cookbook, or
post them to the improve-revolution list!

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


Reply via email to