Skip to main content
Known Participant
June 19, 2007
Question

Write to a File on _afterSave

  • June 19, 2007
  • 2 replies
  • 522 views
After a file has been edited and saved i wanted to write to a seperate .txt file. i was trying to call a javascript function in an test_afterSave.htm file. i am trying to use var fso = CreateObject("Scripting.FileSystemObject"); to create the object but it keep failing. Does DW allow CreateObject?

thanks
This topic has been closed for replies.

2 replies

kscapAuthor
Known Participant
June 19, 2007
thanks. using DWFile works great. thanks again.
Inspiring
June 19, 2007
There is no access to that. You need to use dwfile. Check the docs at
http://livedocs.adobe.com/dreamweaver/8/apiref/02_file3.htm

Tom Muck

"kscap" <webforumsuser@macromedia.com> wrote in message
news:f59d1u$hhu$1@forums.macromedia.com...
> After a file has been edited and saved i wanted to write to a seperate
> .txt
> file. i was trying to call a javascript function in an test_afterSave.htm
> file.
> i am trying to use var fso = CreateObject("Scripting.FileSystemObject");
> to
> create the object but it keep failing. Does DW allow CreateObject?
>
> thanks
>
>