filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ]

FileWriters Questions

Ideas for discussion

In 5.0.2, there's a wonderful feature called Filewriters.

FileWriters allow you to save your html anywhere--locally, remotely, in the ODB, into a SQL database, anything.

Basically, whenever the HTML framework wrote a file to disk, that's been abstracted out to go through the filewriters system.

I'm starting to use it for some of my macros that write files to disk.

html.fileExists ()?

Some of my macros have caching--i.e., the look to disk to see if the file exists, then checks the last modification date to determine whether it needs to but updated or not. (I use file.exists(f) to determine this)

But when I use html.writeFile, there may not be a file on disk. Or the file on disk may have no relation to the latest written object, because it may have been written to another system (like the odb or whatever).

The question is, how can I determine if the file exists or the last mod date of an 'object' that has been written through the filewriters system?

Will there be a way to check, and will filewriters need an additional script to provide "exists" and "last modified" functionality?

filewriters Extensions

Maybe, in addition to shutdown, startup, and write, we could add (make this optional?) two more methods for each filewriter: exists () and timeModified ().

Comments to the Script Meridian Community list.

Ideas & Issues
Site Outline

I&I Home
1998
  05
  Improving Javascript Support
  Featuring suites.jsl: A pageheader script for the <SCRIPT> tag.
  06
  Character Entities
  Make working with HTML character entities easy.
  Copy Address
  FileWriters Questions
  Ideas for discussion
  Navigating the ODB
  Making it easier to get around in Frontier
  Suite Info
  If you write suites, tell your users about yourself!
  07
  Binary Objects in Your Website
  Frontier needs to learn how to render binary objects
  Creating META tags
  How can I put <meta> tags into my Frontier web pages?
  Filemaker and Frontier
  Where can I find resources for scripting Filemaker with Frontier?
  Frontier Mailing Lists
  More signal, less noise
  08
  Comments on Fat Pages
  Good fatpage, bad fatpage
  Quiet Advances
  Userland continues to crank out new features, bug fixes.
  Render Table Memory Issues
  An easy fix to a problem with rendering huge websites
  12
  Rendering out to more than one server
  Filewriters should be able to see the adrPageTable

   
Back to I&I Home   >>  

Back to
the top

This is Phil's Frontier Scripting Site. San Francisco, CA
Copyright © 1996-98, Phil Suh. All Rights Reserved.
http://www.filsa.net/frontier/ii/1998/06/fileWritersQ.html
This page last built on 6/28/99; 11:07:17 PM

filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ]