Whoops! That should be:
on getNextFile if lListOfFilePaths = empty then exit getNextFile put line 1 of lListOfFilePaths into remoteFilePath delete line 1 of lListOfFilePaths —SET THE LOCAL FILE’S NAME HOWEVER YOU NORMALLY WOULD put whatever into localFileName libURLDownloadToFile (" ftp://anonymous:myemailaddr...@ftp.sec.gov/ " & remoteFilePath),(exportFolderPath & "/" & localFileName ),"downloadComplete" end getNextFile Jim Lambert _______________________________________________ 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