CS4 Open Site Folder from Dreamweaver - Niagara Web Design | Niagara Custom Software | Niagara Web Hosting | Niagara Internet Marketing | Niagara SEO | Swhistle Soft

Tuesday, 23 February 2010 15:21
Share Link: Bookmark Google Yahoo MyWeb Del.icio.us Digg Facebook Myspace Reddit Ma.gnolia Technorati Stumble Upon

Ever wanted to open your site folder in an explorer window by context menu?

Good news, I have developed a CS4 plugin which could be easliy converted to CS3 if needed that allows just such an operation. The plugin is written in the c extensibility for javascript which is very easy to use once you have a few tricks ironed out. The documentation of which can be found in 2 separate parts : Here and Here. The direct link to the C section is Here but you need to click on the tree view in the left panel to subnavigate the C API.

 

 

 

Details

To use the C API you can go to your program folders directory and start working with the sample code to start. If you modify the output library name in your project settings for Visual Studio or update the mak file, then you will be able to use it for your own library. Once you have successfully compiled the code, then you can actually use you can copy the dll to your Appllication Data folder under Adobe\DreamWeaver\Configurations\JSExtensions. Once this is done, if you have dreamweaver open, you will have to restart, then you can access your extension functions from DreamWeaver javascript extensions and commands. The syntax for calling a function would be as follows: [libraryname].[function name]. There are log files that get created if there are javascript errors ( say if you return JS_FALSE from your lib ) in side the configurations directory under logs.

 

Packaging

The easiest way to install a package for Dreamweaver is by using the Extension Manager, which you can actually use to create packages as well. Basically you have to create an xml file with some specific elements in it to insert menu items for your commands or just copy the files. Then you need to have your JSExtensions folder with the dll files ready in the same directory as your mxi file. Once those steps are complete you can simply use the create package menu item from the Extension Manager and choose your  msi package file as a source, choose a name for your mxp package and a location to save it and follow the rest of the onscreen instructions.

Installation

 

The easiest way to install your package is to double click the mxp file created in the previous step, or, copy the dll file straight into the JSExtensions folder.

 

 

Add comment


Security code
Refresh