Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
gjhdigital #1
DWfile.copy not working
I have an extension that I am building and I need to copy a file automatically
from the config folder to the users local site when they apply the extension:
I've tried this:
var fileURL = "file:///C|/Config/Objects/GJHDigital/test123.gif";
var SiteFolder = site.getLocalPathToFiles() + "Test";
DWfile.createFolder(SiteFolder);
DWfile.copy(fileURL, SiteFolder);
And I tried this:
var path = dw.getConfigurationPath()+'/Objects/GJHDigital/test123.gif"';
var path2 = site.getLocalPathToFiles();
DWfile.copy(path, path2);
and both do not work. No errors or anything. And the folders do exist. Does
anyone know how to do this with Dreamweaver MX 2004? Because I understand there
is a new way in CS3, which I do not have yet.
gjhdigital Guest
-
DWfile.copy dies after the 1023 file
I have an extension that copies files from the Dreamweaver site folder to a staging folder using a recursive copy function. After copying 1023... -
DWfile.write returning 0
I'm trying to create a temp file for my extension, but it isn't working, here is the code I'm using. ... -
Copy and paste from Freehand MX to Photoshop not working
Hi This is driving me mad!!! When I copy a tif placed in freehand to the clipboard and then try to paste in photoshop, all i get is an empty box.... -
Shadow Copy/Previous Versions Not Working
We have a 2003 Enterprise File Server and I'm trying to enable shadow copy on the shares. I can see that the shadow copies do get created as the... -
graphics copy has stopped working
When I try to copy acrobat graphics, I either get nothing or a repetition of the first element in the graphics. Previously it worked fine. It works... -
Clukey #2
Re: DWfile.copy not working
When you use DWfile.copy() you have to specify the file name in the "Copy To"
path so try this:
var path = dw.getConfigurationPath()+'/Objects/GJHDigital/test123.gif"';
var path2 = site.getLocalPathToFiles() + "test123.gif"; //Notice the file
name, not just the folder
DWfile.copy(path, path2);
Clukey Guest



Reply With Quote

