Has anyone else seen this sort of behavior? I have a simple Action to generate an Apache Type Map file:
function fwAfterEndHTML(){
if(fwFolder.fwLastPage && fwPage == fwFolder.fwLastPage){
var contents = fwFolder.fwItems;
var pages = new Array;
for (i in contents){
var page = contents[i].fwFileName.toString();
if( page.substr(0,6) == 'index_'){
var lan = page.substr(6,(page.indexOf('.') - 6));
if(lan != 'alternative'){
pages.push( 'URI: ' + page + "nContent-type: text/htmlnContent-language: " + lan + "n");
}else{
pages.push( 'URI: ' + page + "nContent-type: text/htmln");
}
}
}
if(pages.length > 0) {
makeVarfile(pages.join('n'));
}
}
}
This is applied to the root folder or a sub-folder in the site, and generates a text file with all index_language.extension files listed neatly in site order.
If I apply it to the site after all of these pages have been added, then all pages are listed. If I subsequently add a new page that should be listed, I have to force Publish Everything in order to see an update.
Is there a magic thing I can add to the Folder Action to make it realize there’s a new file? It’s a bit rough to tell the user “Hold down the Control key when you publish, or remove the Folder Action and add it back again whenever you change things around.” I thought the whole point of Folder Actions was that they didn’t need watching like this.
Thanks in advance,
Walter
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options