After many battles with the quirks in the Dreamweaver API, code completion is now working quiet nicely. After trawling through the code hinting documentation, and getting some help from the Adobe team, it turns out that it’s actually not all that difficult to get working if you adhere closely to a prescribed structure. (more…)
Posts Tagged ‘code’
Code Hinting In The Dreamweaver Extensibility API
Wednesday, May 6th, 2009Live *.ste Dreamweaver Password Encoder and Decoder
Tuesday, May 5th, 2009I noticed that a lot of the traffic currently going to this post is coming from people wanting to encode and decode passwords from a *.ste file online. You can now do this using the form below:
MMNotes.localURLToFilePath & MMNotes.filePathToLocalURL Workaround In The Dreamweaver Extensibility API
Wednesday, April 22nd, 2009If 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!
Encoded Passwords In *.ste Site Definition Files
Thursday, August 28th, 2008UPDATE: You can either encode or decode a Dreamweaver password using the form in this post.
I came across a little undocumented behaviour in the Dreamweaver API the other day. The Site.importSite() function (which will import a site from a Dreamweaver site definition file, or *.ste) expects the pw attribute of the remoteinfo element to be encoded… but as what? (more…)