Adobe Dreamweaver Forums



Last 10 THreads :         DW help urgently needed, lost my connection to site (Last Post : Ronnie MacGregor - Replies : 11 - Views : 12 )           »          Connecting to a Database (Last Post : Ronnie MacGregor - Replies : 11 - Views : 12 )           »          application.cfm/webservice (Last Post : BKBK - Replies : 1 - Views : 2 )           »          Random positions for Movieclips (Last Post : arnhemcs - Replies : 4 - Views : 8 )           »          Generating LEGAL size Word doc (Last Post : BKBK - Replies : 2 - Views : 3 )           »          This Tough Economy and Flex/AIR (Last Post : LuigiL - Replies : 2 - Views : 109 )           »          Fireworks images seem jaggy or kind of blurry (Last Post : azmatswabi - Replies : 5 - Views : 7 )           »          a group for eve players to discouss the interest (Last Post : evemaven - Replies : 0 - Views : 1 )           »          Trouble using variables to name and instantiateTextFields (Last Post : jc_2006 - Replies : 1 - Views : 2 )           »          Background color code is not working. Please help (Last Post : Tim G - Replies : 9 - Views : 10 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Extensions
 
Tags: , , , ,



Reply
  #1 (permalink)  
Old 07-31-2008, 05:03 PM
ndutzie
 
Posts: n/a
Diggs:
Default Extension to copy files to local folder

Hi All,
I'm really a newbie in extension making process and confused.

I need to make an extension so that when it is executed, the files would be
copied from $dreamweaver/Configuration/ (the folder to put the files when the
extension is installed) to the local site folder (where we build the new
site).
Some questions regarding this:
[num]1. Is this a possible thing to do? I won't need the user to input
something in order to make this work, just click a menu on the Insert or
Commands and all the files will be copied.[/num]
[num]2. Another confusion is that, when I was trying to install the extension,
it didn't display any error and dw says that the extension is installed. Yet,
the menu that I created doesn't do anything when clicked, and the file doesn't
exist on the folder I intended to be the destination in
$dreamweaver/Configuration/. Any clue on this?[/num]

I would appreciate any help, as it is getting really confusing to me.

Regards,



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-08-2008, 02:05 PM
SLext
 
Posts: n/a
Diggs:
Default Re: Extension to copy files to local folder

var ImageFolder = theForm.ImageFolder.value;
...
if(ImageFolder != "") {
var newURL1 =
dreamweaver.getSiteRoot()+MM_findObj('ImageFolder' ).value+"*.gif";
var fileURL1 = dreamweaver.getConfigurationPath()+"/Shared/***/im age/*.gif";
DWfile.copy(fileURL1, newURL1);
}

The *.gif is a picture and *** is a folder you can create the picture and the
folder with mxi-code.
ImageFolder is a Userinput.

Sorry my English is not so good!

Reply With Quote
  #3 (permalink)  
Old 08-08-2008, 03:39 PM
ndutzie ndutzie is offline
Junior Member
 
Join Date: Aug 2008
Posts: 2
Diggs: 0
Default

Thank you.
Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk