Posts Tagged ‘extension’

MMNotes.localURLToFilePath & MMNotes.filePathToLocalURL Workaround In The Dreamweaver Extensibility API

Wednesday, April 22nd, 2009

Dreamweaver Paths

If you have worked with the Dreamweaver Extensibility API, you may have noticed that the MMNotes.localURLToFilePath and MMNotes.filePathToLocalURL functions do not work correctly on Mac OS X.

Below is the code that I used to get around this issue:

function localURLToFilePath(localURL)
{
	return (dreamweaver.isOSX()) ? localURL.replace(/^file:\/\/\/([\d\w\s\\_-]+)(.+$)/, "/Volumes/$1$2") : MMNotes.localURLToFilePath(localURL);
}

function filePathToLocalURL(filePath)
{
	return (dreamweaver.isOSX()) ? "file://" + filePath : MMNotes.filePathToLocalURL(filePath);
}

Hope that saves you some time!

Dreamweaver Goodness

Thursday, October 2nd, 2008

Dreamweaver Property Inspector

I has been a little while since updates, but there has been a reason for that – I have been working hard! I know a lot of Konductor’s focus is on the AIR application, and for good reason, but the Dreamweaver extension definitely warrants some attention too.

I will post more detailed information soon, but here is what we’ve got working in the extension since the demo video:

  • Automatic updates (this is an exciting one for me – big thanks to the Extension Manager CS4 team for making this super easy in the new version!)
  • Menu management using standards compliant XHTML and CSS (again, this looks great in Dreamweaver CS4 as you now get the nice, accurate WebKit rendered previews for dropdown menus)
  • Intuitive interface (if something is not right with your design, or has a chance of causing some problems, the designer is made aware of this and offered the likely solution with the click of a button – this is huge for new designers, as Dreamweaver can be a little daunting at times…)

Also, I’ve been working with the pre-release builds of Dreamweaver CS4 and Extension Manager CS4, and they really do add a lot of cool new features. To be perfectly honest, when I started playing around with the new Dreamweaver I thought it was just CS3 with a new skin, WebKit rendering, and Subversion support. But after using it, and especially after developing for it, I have found that it adds a lot of value. More on that later too.

Anyways, thats it for now. Stay tuned for more updates, there is a lot of exciting stuff coming down the pipe.