Dreamweaver.getsmartobjectstate(), Dreamweaver.getsmartobjectoriginalwidth() – Adobe Dreamweaver API Reference CS5 User Manual
Page 56

51
DREAMWEAVER API REFERENCE
Photoshop integration
Last updated 8/27/2013
Description
This function re-creates the selected web image based on the current contents of the connected original source file.
Arguments
None.
Returns
None.
dreamweaver.getSmartObjectState()
Availability
Dreamweaver CS4.
Description
This function returns the state of a web image in terms of Smart Objects functionality.
Arguments
Absolute local URL of a web image.
Returns
The state of the Smart Object as a numeric value such as:
dreamweaver.getSmartObjectOriginalWidth()
Availability
Dreamweaver CS4.
Description
This function evaluates and returns the pixel width of the original asset file of a Smart Object.
Numeric value
Description
-10
Unknown error
0
No Smart Object
1
In sync with contents of the original asset file
100
Web image modified after last sync
200
Original asset modified after last sync
+2
Dimensions of the original asset differ from width and height attributes in HTML
+4
Dimensions of web image differ from width and height attributes in HTML
10
Unable to access the original asset file
20
Unable to access web image file