/ Published in: Bash
This will build and install a Dreamweaver CS4 extension automatically and silently. The version number will be taken from the *.mxi file and appended to the packed *.mxp. Set the extensionfile variable to the name of the *.mxi file without the extension.
If the the extensionfile variable is set to "DreamweaverExtension", Adobe Extension manager will build "DreamweaverExtension.mxi", generate "DreamweaverExtension-1.0.0.mxp" (version number taken from the *.mxi), and install it.
If the the extensionfile variable is set to "DreamweaverExtension", Adobe Extension manager will build "DreamweaverExtension.mxi", generate "DreamweaverExtension-1.0.0.mxp" (version number taken from the *.mxi), and install it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
extensionfile=DreamweaverExtension; extensionversion=`xpath $extensionfile.mxi /macromedia-extension/@version | sed -e "s/^.*version=[\'\"]\(.*\)[\'\"].*$/\1/"`; /Applications/Adobe\ Extension\ Manager\ CS4/Adobe\ Extension\ Manager\ CS4.app/Contents/MacOS/Adobe\ Extension\ Manager\ CS4 -suppress -package mxi="$extensionfile.mxi" mxp="$extensionfile-`echo $extensionversion`.mxp"; sleep 1; /Applications/Adobe\ Extension\ Manager\ CS4/Adobe\ Extension\ Manager\ CS4.app/Contents/MacOS/Adobe\ Extension\ Manager\ CS4 -suppress -install mxp="$extensionfile-`echo $extensionversion`.mxp"