Re: New command suggestion

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13868
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]Let me know if it doesn't work, (AS can be _very_ picky).Eddie 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]Let me know if it doesn't work, (AS can be _very_ picky).Eddie Eddie Schrieffer

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:

Interesting speed comparison .. (2003) Emailer (1998) multi-paragraph fields (1997) help (2001) searching for last file in a directory (1999) Text limits in NT version? (1997) WebCatalog for Postcards ? (1997) Sorting... stumped. (2006) RE: new cart IDs being assigned somehow (1997) affiliate marketing program (1998) Major Security Hole (1998) WebCat2.0b15-to many nested [xx] tags (1997) multiple product databases (1997) Calendar Snippet Problems (1998) More to Expire (1998) More Shopping Cart Problems (2000) Missing from Docs [folderName] (1997) determining plug-ins? (1998) using showpage and showcart commands (1996) Block air shipping choices (2006)