Gregory Lypny wrote: > Have LiveCode Server running on my Mac. It is configured to look for > web pages in the WebServer/Documents folder. But what do I do if I > want to use the Files function to get a listing of files in another > folder, say, a data folder? When I create a handler in the server > using > > on listMyFiles > set the default folder to someFolderPath > put the files > end listMyFiles > > everything gets messed up even if the handler is not called. LiveCode > server stops looking for HTML pages in the Documents folder.
Try saving and restoring the original default folder: on listMyFiles put the default folder into tSaveDir set the default folder to someFolderPath get the files set the default folder to tSaveDir put it end listMyFiles -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode