Re: Using Applescript to process WebCatalog functions

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17730
interpreted = N
texte = >> Of course, there's a lot more to it than this, especially if there's more than >> one database that needs to be replaced in this manner... > >Can you explain this more detailled? What are your concerns when there are more databases? Well ... if there's only a single database that needs to be uploaded to that one 'upload-folder', then there's very little WebDNA coding required.But if you plan to use the same 'upload-folder' to receive replacement db files from all your clients, then you will have to create some method if identifying *which* db the newly uploaded replacement file is supposed to replace.And you'll also have to deal with the possibility that two or more replacement files may appear in that folder at the same time, which means you'll have to give WebCat the ability to identify which file goes where. But that's an issue you have to deal with no matter what system you use, because even a single client can upload two or more files at the same time.And if by chance two or more fo the newly-uploaded files have the same name, one will probably overwrite the other, or else the second one will be given a different name ... and that's another problem entirely.So basically it's a whole lot easier (from a WebDNA coding standpoint) to designate a unique folder for each replacement db file that's going to be uploaded, then you know that when a file appears in that folder, there's only one place for it to go.There's an issue dealing with that 'panic button' you might want to think about, too. It's a good idea in gereral, but if the user uploads two files in succession and they are both bad, and if he doesn't use the panic button in between the uploads, then using the panic button will not replace a bad db file with a good one, it will replace the bad one with another bad one ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Using Applescript to process WebCatalog functions (Mike Heininger 1998)
  2. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  3. Re: Using Applescript to process WebCatalog functions (Kenneth Grome 1998)
  4. Re: Using Applescript to process WebCatalog functions (Britt T. 1998)
  5. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  6. Re: Using Applescript to process WebCatalog functions (Britt T. 1998)
  7. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  8. Re: Using Applescript to process WebCatalog functions (Britt T. 1998)
  9. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  10. Re: Using Applescript to process WebCatalog functions (Kenneth Grome 1998)
  11. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  12. Re: Using Applescript to process WebCatalog functions (Bob Mosebar 1998)
  13. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  14. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  15. Re: Using Applescript to process WebCatalog functions (Bob Mosebar 1998)
  16. Re: Using Applescript to process WebCatalog functions (Kenneth Grome 1998)
  17. Re: Using Applescript to process WebCatalog functions (Kenneth Grome 1998)
  18. Re: Using Applescript to process WebCatalog functions (Kenneth Grome 1998)
  19. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  20. Re: Using Applescript to process WebCatalog functions (Bob Mosebar 1998)
  21. Re: Using Applescript to process WebCatalog functions (Bob Mosebar 1998)
  22. Re: Using Applescript to process WebCatalog functions (Britt T. 1998)
  23. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  24. Re: Using Applescript to process WebCatalog functions (Kenneth Grome 1998)
  25. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  26. Re: Using Applescript to process WebCatalog functions (Bob Mosebar 1998)
  27. Re: Using Applescript to process WebCatalog functions (Kenneth Grome 1998)
  28. Re: Using Applescript to process WebCatalog functions (Kenneth Grome 1998)
  29. Re: Using Applescript to process WebCatalog functions (PCS Technical Support 1998)
  30. Re: Using Applescript to process WebCatalog functions (Peter Ostry 1998)
  31. Using Applescript to process WebCatalog functions (Bob Mosebar 1998)
>> Of course, there's a lot more to it than this, especially if there's more than >> one database that needs to be replaced in this manner... > >Can you explain this more detailled? What are your concerns when there are more databases? Well ... if there's only a single database that needs to be uploaded to that one 'upload-folder', then there's very little WebDNA coding required.But if you plan to use the same 'upload-folder' to receive replacement db files from all your clients, then you will have to create some method if identifying *which* db the newly uploaded replacement file is supposed to replace.And you'll also have to deal with the possibility that two or more replacement files may appear in that folder at the same time, which means you'll have to give WebCat the ability to identify which file goes where. But that's an issue you have to deal with no matter what system you use, because even a single client can upload two or more files at the same time.And if by chance two or more fo the newly-uploaded files have the same name, one will probably overwrite the other, or else the second one will be given a different name ... and that's another problem entirely.So basically it's a whole lot easier (from a WebDNA coding standpoint) to designate a unique folder for each replacement db file that's going to be uploaded, then you know that when a file appears in that folder, there's only one place for it to go.There's an issue dealing with that 'panic button' you might want to think about, too. It's a good idea in gereral, but if the user uploads two files in succession and they are both bad, and if he doesn't use the panic button in between the uploads, then using the panic button will not replace a bad db file with a good one, it will replace the bad one with another bad one ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Not really WebCat (1997) Windows-based Code Editor (2002) WebDNA Speed Test (2008) PCS Customer submissions ? (1997) Improperly coded search fails ... (2003) Developer Edition (4.5) (2004) HomePage Caution (1997) WebCat2 several catalogs? (1997) [authenticate] (1999) frames & carts (1997) RE: Template not found error messages (1997) Search (1997) Sorting LISTFILES (1997) Running _every_ page through WebCat ? (1997) WC2b15 File Corruption (1997) Special characters & [sendmail] (1998) Redirect (2003) PSC recommends what date format yr 2000??? (1997) Disappearing Databases (2000) WebCatalog for Linux users!! (2000)