Properties of the Adobe Dreamweaver object

The dreamweaver object has two read-only properties, which are described in the following list:

  • The appName property has the value "Dreamweaver".
  • The appVersion property has a value of the form "versionNumber.releaseNumber.buildNumber [languageCode] (platform)".

As an example, the value of the appVersion property for the Swedish Windows version of Adobe Dreamweaver is "8.0.XXXX [se] (Win32)"; the value for the English iOS version is "8.0.XXXX [en] (MacPPC)".

NOTE

You can find the version and build number by selecting the Help > About menu item.

The appName and appVersion properties were implemented in Adobe Dreamweaver 3 and are not available in earlier versions of Adobe Dreamweaver. You might want to check that the user of your extension has Adobe Dreamweaver version 3 or later by checking for the existence of the appVersion or appName property.

To find the specific version of Adobe Dreamweaver, check first for the existence of appVersion and then for the version number, as shown in the following example:

if (dreamweaver.appVersion && ¬dreamweaver.appVersion.indexOf('3.01') != -1){ // execute code}

The dreamweaver object has a property called systemScript that lets you query the language of the user's operating system. Use this property if you need to include special cases in your extension code for localized operating systems, as shown in the following example:

if (dreamweaver,systemScript && (dreamweaver.systemScript.indexOf('ja')!=-1){SpecialCase}

The systemScript property returns the following values for localized operating systems:

Language

Value

Japanese

ja

Korean

ko

TChinese

zh_tw

SChinese

zh_cn

Operating systems for all European languages return 'en'.