Re: New command suggestion

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13871
interpreted = N
texte = >on Wed, 8 Oct 1997 22:53:24 Kenneth Grome wrote: > >>In other words, what you really would like to have is a new tag that >>purges the xxx.db data from RAM *without* writing it to disk. Yes, >>that would make it possible to do everything you need, automatically, >>in a single template like this: > > >>[CloseDatabase xxx.db] >>[AppleScript] >>Move the xxx.db file to the trash and rename the xxx.db copy file >>to xxx.db >>[/AppleScript] >>[PurgeDatabase xxx.db] > > >Ken this is Great! >But, I'd like to clean up the AppleScript: > >[CloseDatabase xxx.db] >[AppleScript] >set myPath to myHardDrive:WebSTAR:WebCatalog: >tell application Finder > if file (myPath & xxx.db) exists then > move the file (myPath & xxx.db) to the trash > rename file (myPath & xxx.db copy) to xxx.db > end if >end tell >[/AppleScript] >[PurgeDatabase xxx.db]Hi Eddie,Thanks for writing some *real* AppleScript for me! :)BTW, In case anyone got the wrong impression about this discussion, I just want to make it clear that there is *NO SUCH THING* as a [PurgeDatabase] tag in WebDNA.This was a THEORETICAL discussion of what could be done *IF* there were such a tag -- but there's no such animal yet ... Sincerely, Ken Grome WebDNA Solutions 808-737-6499 http://www.hui.net/dna/webdna.html Associated Messages, from the most recent to the oldest:

    
  1. Re: New command suggestion (Kenneth Grome 1997)
  2. Re: New command suggestion (Eddie Schrieffer 1997)
  3. Re: New command suggestion (Kenneth Grome 1997)
  4. Re: New command suggestion (Kenneth Grome 1997)
  5. Re: New command suggestion (Eddie Schrieffer 1997)
  6. Re: New command suggestion (was Re: Modifying databases manually) (Jeremy Pocock 1997)
  7. Re: New command suggestion (was Re: Modifying databasesmanually) (Kenneth Grome 1997)
  8. New command suggestion (was Re: Modifying databases manually) (Dale LaFountain 1997)
>on Wed, 8 Oct 1997 22:53:24 Kenneth Grome wrote: > >>In other words, what you really would like to have is a new tag that >>purges the xxx.db data from RAM *without* writing it to disk. Yes, >>that would make it possible to do everything you need, automatically, >>in a single template like this: > > >>[CloseDatabase xxx.db] >>[AppleScript] >>Move the xxx.db file to the trash and rename the xxx.db copy file >>to xxx.db >>[/AppleScript] >>[PurgeDatabase xxx.db] > > >Ken this is Great! >But, I'd like to clean up the AppleScript: > >[CloseDatabase xxx.db] >[AppleScript] >set myPath to myHardDrive:WebSTAR:WebCatalog: >tell application Finder > if file (myPath & xxx.db) exists then > move the file (myPath & xxx.db) to the trash > rename file (myPath & xxx.db copy) to xxx.db > end if >end tell >[/AppleScript] >[PurgeDatabase xxx.db]Hi Eddie,Thanks for writing some *real* AppleScript for me! :)BTW, In case anyone got the wrong impression about this discussion, I just want to make it clear that there is *NO SUCH THING* as a [PurgeDatabase] tag in WebDNA.This was a THEORETICAL discussion of what could be done *IF* there were such a tag -- but there's no such animal yet ... Sincerely, Ken Grome WebDNA Solutions 808-737-6499 http://www.hui.net/dna/webdna.html 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:

WebCatalog Technical Reference (1997) WC1.6 to WC2 date formatting (1997) Multiple catalog databases and showcart (1997) Multiple SSL Keys (1998) random in arizona (2003) Date and Time (2005) emailer settings and control questions (1997) 5.0 Preview Promotion Extension (2003) Nested tags count question (1997) More on the email templates (I like it) (1997) Plugin vs. CGI (1998) Opinion: [input] should be called [output] ... (1997) [WebDNA] Carriage Return/Line Feed Issue (2009) Email notification to one of multiple vendors ? (1997) [WebDNA] WebDNA on LiveCD ... (2008) Smith Micro - no competition (2000) Where is f2? (1997) WebDNA on linux (2004) GuestBook example (1997) transferring values (1998)