Question
Extension error if DW is not restarted between uses
DWMX 2004 on a WinXP pro SP2 box. I am not running as
superuser, but I'm also only adding this script to my personal
config folder.
The extension is a very simple JS designed to automate some redundant find/replaces when cleaning up code in documents converted to HTML from within Quark.
When I start Dreamweaver and run the script, it works with no error. I can even run several similar extensions in a row. But try to run the script a second time on a new document without closing and restarting Dreamweaver, and rather than performing those nice automated find/replaces, the script throws this into the head of the document, then does nothing:
<head>
<title>Cleanup</title>
</head>
<body>
</body>
</html>
I'm developing this for a team of people that are not going to want to have to restart DW every time they work on a new document.
This is probably something simple that I'm just overlooking. Code is below. Any ideas?
_______
The extension is a very simple JS designed to automate some redundant find/replaces when cleaning up code in documents converted to HTML from within Quark.
When I start Dreamweaver and run the script, it works with no error. I can even run several similar extensions in a row. But try to run the script a second time on a new document without closing and restarting Dreamweaver, and rather than performing those nice automated find/replaces, the script throws this into the head of the document, then does nothing:
<head>
<title>Cleanup</title>
</head>
<body>
</body>
</html>
I'm developing this for a team of people that are not going to want to have to restart DW every time they work on a new document.
This is probably something simple that I'm just overlooking. Code is below. Any ideas?
_______