Getting list of files in a folder
Scott Rossi
scott at tactilemedia.com
Tue Feb 9 00:53:57 EST 2010
A little side note about the defaultFolder...
If you're going to change the default folder, it's good practice to store
the current default and set it back once you're done. Like in a modified
version of Jim's handler:
answer folder "choose your target folder"
put it into tFullPath
put the defaultFolder into DF
set the defaultFolder to tFullPath
put the files into tFileList
set the defaultFolder to DF
do your stuff here....
For most stacks, leaving out this step won't cause any issues, but in stacks
that access files in multiple locations on the drive or when creating Rev
apps that need to play nicely with other apps, resetting the defaultFolder
is good housekeeping.
Not intending to muddy the waters...
Regards,
Scott Rossi
Creative Director
Tactile Media, UX Design
More information about the use-livecode
mailing list