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 ifend 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:
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 ifend 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)