Professional Web Applications Themes

Extension to copy files to local folder - Macromedia Exchange Dreamweaver Extensions

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, ...

  1. #1

    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,

    ndutzie Guest

  2. #2

    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/***/image/*.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!

    SLext Guest

Similar Threads

  1. Local copy of website files
    By Claire S in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: March 18th, 02:44 PM
  2. Copy & rename entire folder structure
    By skooter in forum Coldfusion - Advanced Techniques
    Replies: 2
    Last Post: February 17th, 05:12 PM
  3. Mapping networked shared folder to local folder
    By Romulo Aquino in forum Windows Networking
    Replies: 0
    Last Post: July 8th, 05:23 PM
  4. Replies: 0
    Last Post: July 7th, 03:39 AM
  5. Video from a local folder?
    By Jeff Kelly in forum Macromedia Director Basics
    Replies: 3
    Last Post: July 4th, 01:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139