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:

Math variable size-dumb question (1999) Upgrade Price Problems (2000) New Command prefs ... (1997) Date Formats (1997) Searching for all records (1998) emailer (1997) eCommerce Idea Patented? (2002) Online reference (1997) SQL Ref. (1999) Disconts (2004) shipping costs (1997) WC2.0 Memory Requirements (1997) Math Bug (1999) Webcat causing crashes left and right! (1997) RE: Displaying Location (1997) RE: OK, here goes... (1997) Summing fields (1997) WebCat2b12 - nesting [tags] (1997) RE: Webcatalog and CyberSTUD (1998) Subtotal help (1997)