Adobe 29180248 - Photoshop Elements 5.0 Скачать руководство пользователя страница 39

MXI tag descriptions

39

menuitem

Description

Describes the menu item to be inserted into the application’s menu structure during installation 
of this extension.

Attributes

name

id

{key}

{platform}

{file}

{command}

{enabled}

{checked}

{dynamic}

{arguments}

, {

resid:name}

name

  The menu item name that you want to appear in the menu. To set the menu item’s access 

key on Windows, use an underscore (_) in front of the access letter. The underscore is 
automatically removed on Mac OS. If two menu items have the same access key, the access key 
works only for the first of the two.

Note: 

To make an underscore character appear in a menu item, precede it with a percent sign—that is, use 

%_

 instead 

of just an underscore.

id

  The menu ID of the new item. Your menu IDs should start with a company name or some 

other namespace prefix to ensure uniqueness. In particular, don’t start your menu IDs with 

DW

which is the prefix used by the Dreamweaver menu IDs. One useful approach is to prefix every 
ID with your domain name (with the elements reversed); for example, if your domain name is 
joe.com, you could start every ID with 

com.joe.

 to ensure uniqueness.

key

  The shortcut key for the menu item. For syntax details that apply to Dreamweaver, see 

“About customizing Dreamweaver menus” in the “Customizing Dreamweaver” chapter of 

Using 

Dreamweaver

.

platform

  Indicates that the menu should appear only on the given platform. Valid values are 

"win"

 and 

"mac"

.

file

  The name of an HTML or JavaScript file that contains JavaScript code determining the 

behavior of the menu item. The path specified in the 

file

 attribute is relative to the 

Configuration folder. The 

file

 attribute overrides the 

command

enabled

, and 

checked

 

attributes. Either 

file

 or 

command

 must be specified for each menu item. Note that in some 

operating systems, filenames are case-sensitive; make sure to use the same capitalization in the 

file

 attribute as you use for the corresponding file and folder names on your hard disk.

command

  JavaScript code specifying the action to be taken when the user chooses the 

menu

 item.

enabled

  JavaScript code that the application executes before displaying the menu, to determine 

whether the menu item is enabled. The code should return a value of 

true

 or 

false

, indicating 

that the menu item should be enabled or dimmed, respectively.

checked

  JavaScript code that the application executes before displaying the menu, to determine 

whether the menu item should have a check mark next to it. The code should return a value of 

true

 or 

false

, indicating that the menu item should be checked or unchecked, respectively.

dynamic

  Indicates whether the menu item’s text and state are to be determined dynamically, by 

an HTML file that contains JavaScript code (specified in the 

file

 attribute). Valid values are 

"true"

 and 

"false"

. If you don’t specify the 

dynamic

 attribute, its default value is 

"false"

.

arguments

  Provides arguments to pass to the specified command file. This attribute is used 

only in conjunction with the 

file

 attribute.

Содержание 29180248 - Photoshop Elements 5.0

Страница 1: ...Packaging Extensions with ADOBE EXTENSION MANAGER CS5...

Страница 2: ...Creative Suite Dreamweaver Fireworks Flash Illustrator InCopy InDesign Kuler andPhotoshopareeither registered trademarks or trademarks of Adobe Systems Incorporated in the United States and or other...

Страница 3: ...nd users a only as Commercial Items and b with only those rights as are granted to all other end users pursuant to the terms and conditions herein Unpublished rights reserved under the copyright laws...

Страница 4: ...ollowing 1 Choose the extension package format 2 Create the extension installation file 3 Create the extension package from the Extension Manager user interface or command line In this document most i...

Страница 5: ...CS extension must be a ZXP file but it doesn t require an extension installation mxi file You can t create a CS extension with Extension Manager but such an extension can be installed or removed by E...

Страница 6: ...more than 20 characters long and contains no spaces This section describes the tags used in the installation file For a list of each tag and compatible Adobe applications see Tags and their compatibl...

Страница 7: ...t the MXI is encoded with the operating system default code page To avoid confusion it is recommended to encode MXI with UTF 8 and explicitly declare the encoding of MXI as UTF 8 To declare that the M...

Страница 8: ...insertbar changes Specifies changes to be made to the insertbar xml file and add new toolbars files Yes server behavior changes Container tag for changes to menus in the menus xml file in any of the D...

Страница 9: ...cut remove Indicates that the specified keyboard shortcut should be removed from the menus xml file No shortcut insert Indicates that a keyboard shortcut should be added to the menus xml file No short...

Страница 10: ...or version 5 0 that degrades gracefully Indicates the version of the MXI specification Extension Manager 5 0 supports mxiversion 5 0 and earlier If mxiversion is unspecified the default value is 1 0 N...

Страница 11: ...guage specific files and apply related configuration changes If this attribute is not specified it is considered false For more information see Creating multilingual extension packages version 2 1 and...

Страница 12: ...ecifies the default language for installed files Extension Manager determines the correct language by completing these steps listed in order of priority 1 The language of the point product defined in...

Страница 13: ...does not degrade gracefully Indicates the relative path to the HTML file on the local computer specified by the ExtensionSpecificEMStore attribute For more information see the destination attribute f...

Страница 14: ...rectlink Contents None Container This tag must be contained in a macromedia extension tag Example update method directlink url http www foobar com update xml license agreement Description This tag let...

Страница 15: ...where to find the item in the application s user interface as well as a brief description of the item s use If the href or source attributes are specified Extension Manager displays the HTML content...

Страница 16: ...maxversion familyname platform bit name The name of an Adobe application This attribute uses a VARCHAR2 data type with a limit of 64 characters Valid values appear below Bridge Contribute Dreamweaver...

Страница 17: ...nsion also uses Fireworks Dreamweaver is the primary product For example product name Dreamweaver version 11 primary true indicates that this extension is primarily intended for Dreamweaver however it...

Страница 18: ...can be installed Valid values are mac or win If set to mac the extension can only be installed for the product on Mac OS If set to win the extension can only be installed for the product onWindows If...

Страница 19: ...lue csxs flags the file as a CS extension package For more information refer to Creating Hybrid Extension packages version 5 0 only on page 57 The value plugin flags the file as a plug in For more inf...

Страница 20: ...create an extension as part of a bundle or framework on Mac OS use either of the following formats without wildcards files file source sourceFolder destination photoshop files files file source sourc...

Страница 21: ...ts folder bridge Specifies the Bridge ExtensionManager Config folder startupscripts Specifies the global suite startup scripts folder bridgestartupscripts Specifies the Bridge global startup scripts f...

Страница 22: ...ndicates what platform the file is intended for If you specify a platform the file is installed only on that platform for instance you can provide two versions of a file one for Windows and one for Ma...

Страница 23: ...ments and Settings All Users Application Data Adobe Extension Manager CS5 Vista Win7 C ProgramData Adobe Extension Manager CS5 Mac OS Library Application Support Adobe Extension Manager CS5 If this at...

Страница 24: ...ouped in the same directory but that directory location is not important you can allow the user to select the directory location Custom tokens are useful even if you don t allow the user to specify th...

Страница 25: ...r Note If you use the prompt attribute do not use the definition attribute Contents None Container This tag must be contained in a file token tag Example This example is for Windows platforms which us...

Страница 26: ...he tags that can be contained by the documenttype changes tag documenttype changes documenttype insert documenttype documenttype documenttype insert documenttype remove id remove_id documenttype chang...

Страница 27: ...ompares this language with the user language which is determined by the process outlined in defaultLanguage on page 12 If the languages match configuration changes are applied if not they are ignored...

Страница 28: ...bute is missing or has a value beyond the bottom of the menu as the tool s position the tool depth defaults to the bottom of the menu This is an optional attribute xml lang Specifies the language for...

Страница 29: ...butes extension type mac creator mac file type extension The file extension such as gif or jpg type The format used when you upload a file to the FTP server The current valid values are ASCII and Bina...

Страница 30: ...nager verifies only that the XML structure is valid Container This tag must be contained in a configuration changes tag Example insertbar changes insertbar insert insertBefore insertAfter category_id...

Страница 31: ...in an insertbar changes tag Example insertbar insert insertBefore insertAfter category_id category itemtype category insertbar insert insertbar remove Description Removes the specified category Attri...

Страница 32: ...s determined by the process outlined in defaultLanguage on page 12 If the languages match configuration changes are applied if not they are ignored If Extension Manager can t determine the user langua...

Страница 33: ...in the ServerBehaviors xml file in any of the Dreamweaver MX Configuration ServerBehaviors servermodel folders Attributes servermodelfolder servermodelfolder The name of the server model folder in whi...

Страница 34: ...nges to menus in the ServerFormats xml file in any of the Dreamweaver MX Configuration ServerFormats servermodel folders Attributes servermodelfolder servermodelfolder The name of the server model fol...

Страница 35: ...MENU LOCATION NONE to the top of each of your extension s HTML files If you do this you must make an entry for your file in the menus xml file Attributes insertAfter insertBefore appendTo prependTo sk...

Страница 36: ...ed as a block retaining its order for example if you list four menu items inside a menu insert tag those four items are inserted at the specified location so that they appear in the menu structure in...

Страница 37: ...g Specifies the language for the listed file Extension Manager compares this language with the user language which is determined by the process outlined in defaultLanguage on page 12 If the languages...

Страница 38: ...t of the access letter The underscore is automatically removed on Mac OS id The menu ID of the new menu Your menu IDs should start with a company name or some other namespace prefix to ensure uniquene...

Страница 39: ...values are win and mac file The name of an HTML or JavaScript file that contains JavaScript code determining the behavior of the menu item The path specified in the file attribute is relative to the C...

Страница 40: ...this extension Attributes This tag s attributes are difficult to write by hand The best way to create a format tag is to use the interface inside Dreamweaver After you create a format open the approp...

Страница 41: ...elements reversed for example if your domain name is joe com you could start every ID with com joe to ensure uniqueness platform Indicates that the separator should appear only on the given platform V...

Страница 42: ...al extension packages version 2 1 and later on page 54 Contents This tag must contain a shortcut tag or a shortcutlist tag Container This tag must be contained in a configuration changes tag Example s...

Страница 43: ...cut Description Specifies a keyboard shortcut to be added to the menus xml file key id command file platform key The key combination used to activate the keyboard shortcut For syntax details that appl...

Страница 44: ...ecified tag library at the end of file Order is not important Attributes xml lang xml lang Specifies the language for the listed file Extension Manager compares this language with the user language wh...

Страница 45: ...e Creating multilingual extension packages version 2 1 and later on page 54 Contents None Container This tag must be contained in a taglibrary changes tag toolbar changes Description Marks the beginni...

Страница 46: ...s of their specified language For more information see Creating multilingual extension packages version 2 1 and later on page 54 Contents The toolbar tag which describes the toolbar to be inserted The...

Страница 47: ...fore insertAfter item isn t found xml lang Specifies the language for the listed file Extension Manager compares this language with the user language which is determined by the process outlined in def...

Страница 48: ...configuration changes regardless of their specified language For more information see Creating multilingual extension packages version 2 1 and later on page 54 Contents None Container This tag must be...

Страница 49: ...g must be contained in an extensions changes tag Example extension insert extension PHP description PHP files extension remove Description Indicates an extension to remove from the Extensions txt file...

Страница 50: ...Extensions with Extension Manager CS5 Contents None Container This tag must be contained in an extensions changes tag Example extension remove extension PHP description PHP files or extension remove e...

Страница 51: ...tension Tag Dreamweaver CS5 Fireworks CS5 Flash CS5 Other CS5 applications macromedia extension X X X X description X X X X license agreement X X X X ui access X X X X products X X X X product X X X X...

Страница 52: ...X shortcutlist X shortcut X taglibrary changes X taglibrary insert X taglibrary remove X toolbar changes X toolbar insert X toolbar remove X toolbar item insert X toolbar item remove X extensions cha...

Страница 53: ...ccess license agreement CDATA SAMPLE THIRD PARTY LICENSE TEXT br Lorem ipsum dolor sit amet consectetuer adipiscing elit sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat vo...

Страница 54: ...on 2 1 and later Since version 2 1 Extension Manager supports multilingual extension packages which let you combine multiple language versions in one ZXP MXP file During installation the appropriate l...

Страница 55: ...guage specific strings The Extension Manager looks up localized strings from XML files that you provide for each language Each XML file should use Adobe s zstring format Below is an example of the Fre...

Страница 56: ...y MXP format Extension Manager CS5 supports the ZXP package format ZXP is based on the public ZIP standard A ZXP format extension package is named with the zxp file name extension There are three kind...

Страница 57: ...eed to specify file type attribute as ordinary or plugin For more information refer to file type attribute in file tag Example In the below example file MyCreativeSuiteExtension zxp is a CS Extension...

Страница 58: ...y user on the machine after one user installs this extension While if one user disables or even removes the extension plug ins still work for other users in operating system To create Enable_for_all_d...

Страница 59: ...ble and how to update to the latest extension Creating update information file This file should be encoded with utf 8 It contains tag version download and description version Specifies the version of...

Страница 60: ...ommand through BridgeTalk to Extension Manager Parameter definitions install installs the extension package packages the extension remove removes the extension enable enables the extension disable dis...

Страница 61: ...n headless mode from parameter is specified in command Headless mode Headless mode is a special command execution mode In this mode there is no UI shown during the command execution After executing th...

Страница 62: ...specified extension is already disabled 7 There is already an instance of Extension Manager Execute command through BridgeTalk Extension Manager can execute command passed through BridgeTalk All comma...

Страница 63: ...uct Dreamweaver CS5 extension Sample Adobe Extension Manager CS5 exe disable productfamily Phtoshop 12 extension Sample Mac OS Applications Adobe Extension Manager CS5 Adobe Extension Manager CS5 app...

Страница 64: ...n invalid parameter Valid irregular parameters which support dragging or double clicking to install and package Install Windows Adobe Extension Manager CS5 exe d test mxp Mac OS Applications Adobe Ext...

Страница 65: ...e GUI To package an extension in Extension Manager do the following 1 Start Adobe Extension Manager CS5 2 Choose File Package MXP Extension or Package ZXP Extension 3 Browse to the extension s install...

Страница 66: ...66 Packaging Extensions with Extension Manager CS5...

Отзывы: