[movefile] create stationery files
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17417
interpreted = N
texte = I have a site where membership registrations go through a hand-approval process via a web-based interface. After approval/rejection, a database record is written, and a text file associated with the membership gets moved to a daily archive folder. The problem is, after the file is moved, it's become a stationery file (Stationery Pad flag set in Get Info) and has been assigned a random Label color! I can uncheck Stationery Pad from the Finder and all the information from the original file is in the document, but it's disconcerting to say the least. The only odd thing in the setup that i think could be affecting this is that I'm accessing the folder that I'm copying the files *from* via an alias (and will have to, for the final posted site).Here's the code doing the actual moving:[math show=f]todaysFile=[date %m%d%y][/math]...[hideif [fileinfo archive[math]todaysFile[/math]/][isFolder][/fileinfo]=T][createFolder archive[math]todaysFile[/math]/][/hideif][moveFile from=toDo/[documentName]&to= archive[math]todaysFile[/math]/[documentName]]In this instance, the folder toDo is an alias.Thanks for any insights,Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Associated Messages, from the most recent to the oldest:
I have a site where membership registrations go through a hand-approval process via a web-based interface. After approval/rejection, a database record is written, and a text file associated with the membership gets moved to a daily archive folder. The problem is, after the file is moved, it's become a stationery file (Stationery Pad flag set in Get Info) and has been assigned a random Label color! I can uncheck Stationery Pad from the Finder and all the information from the original file is in the document, but it's disconcerting to say the least. The only odd thing in the setup that i think could be affecting this is that I'm accessing the folder that I'm copying the files *from* via an alias (and will have to, for the final posted site).Here's the code doing the actual moving:[math show=f]todaysFile=[date %m%d%y][/math]...[hideif [fileinfo archive
[math]todaysFile[/math]/][isFolder][/fileinfo]=T][createFolder archive
[math]todaysFile[/math]/][/hideif][moveFile from=toDo/[documentName]&to= archive
[math]todaysFile[/math]/[documentName]]In this instance, the folder toDo is an alias.Thanks for any insights,Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Rob Marquardt
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:
Plugin or CGI or both (1997)
Re:listfiles-looking for slick solution (1997)
Um...how do I ask this? (1999)
[WebDNA] Require no empty field (2010)
WebCat2 as a chat server? (1997)
Preventing Merchant Settling ? (1997)
Blasted shownext (request for 4.0) (1998)
More on the email templates (I like it) (1997)
WebCat2b12 - nesting [tags] (1997)
RequiredFields parameter (1998)
webdelivery.html and webna (1997)
Trouble with Netscape (1998)
Re[2]: 2nd WebCatalog2 Feature Request (1996)
Fed Ex Rate Charts (2003)
Just Testing (1997)
carriage returns in data (1997)
Interfacing WebMerchant to www.fedex.com (1997)
[OT] Ratings comparison? (2003)
Where is f2? (1997)
[isfile] ? (1997)