Professional Web Applications Themes

Help with backup script on DW site panel. - Macromedia Exchange Dreamweaver Extensions

Has anyone figured out how to have DW JavaScript create a folder on the remote site and rename it? We need to backup a file before we work on it so I want to create an extension that allows me to right click on a file in remote view, select 'backup', have DW check for a 'backup' folder, make a folder and name it 'backup' if there isn't, and copy the selected file to 'backup'. This makes the folder: if (site.makeNewFolder()){ alert('Created folder'); } else{ alert('Unable to create folder'); } but I can't rename it. Since this leaves the cursor ...

  1. #1

    Default Help with backup script on DW site panel.

    Has anyone figured out how to have DW JavaScript create a folder on the remote
    site and rename it? We need to backup a file before we work on it so I want to
    create an extension that allows me to right click on a file in remote view,
    select 'backup', have DW check for a 'backup' folder, make a folder and name it
    'backup' if there isn't, and copy the selected file to 'backup'. This makes
    the folder: if (site.makeNewFolder()){ alert('Created folder'); } else{
    alert('Unable to create folder'); } but I can't rename it. Since this leaves
    the cursor in the sitepanel in 'rename file/folder' mode I can't figure out how
    to progmatically rename the folder. Any ideas are greatly appreciated!
    Regards, Steve

    stevenlmas Guest

  2. #2

    Default Re: Help with backup script on DW site panel.

    stevenlmas wrote:
    > Has anyone figured out how to have DW JavaScript create a folder on the remote
    > site and rename it?
    Unfortunatley, the exposed API doesn't offer a way to do what you're looking to do.

    The only way I could imagine doing this would be with a scriptable 3rd part FTP program that you coudl invisibly pass the selected fodler name and connection info and it would then connect to the site see if there is a backup folder.

    Or perhaps you could handle things locally. take the remote selection, find its match locally, create the local back up folder and copy the local file into it and upload that local copy. That would then place the copy in a backup fodler and only create if it isn't already present.


    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
    danilocelic *TMM* Guest

Similar Threads

  1. script to take backup
    By suhailh@yahoo.com in forum AIX
    Replies: 9
    Last Post: August 23rd, 09:50 AM
  2. Printing the Site Panel?
    By Dan Vendel *GOF* in forum Macromedia Dreamweaver
    Replies: 1
    Last Post: July 18th, 10:18 AM
  3. udb backup script
    By sathyaram_s in forum IBM DB2
    Replies: 4
    Last Post: July 16th, 05:47 PM
  4. HELP: SQL script to backup all databases
    By NoSpam in forum Microsoft SQL / MS SQL Server
    Replies: 1
    Last Post: July 9th, 07:26 PM
  5. sqr's ftp site backup
    By sqr in forum Windows XP/2000/ME
    Replies: 13
    Last Post: July 8th, 03:20 AM

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