SetProperty - Maple Help

PackageTools

 SetProperty
 set a named property of a workbook

 Calling Sequence SetProperty( package, property_name, property_value )

Parameters

 package - string property_name - string or name property_value - string, list(string)

Description

 • The SetProperty command assigns a name/value pair to the workbook's metadata.
 • Properties are useful when posting content to the MapleCloud, and when creating packages that can be installed. Some of the properties recognized by the MapleCloud include: authors, description, language, screenshots, tags, thumbnail, and title. ID and version are also recognized, but it is not recommended that either is manually modified as they correspond to unique identifiers for the MapleCloud.
 • When scripting the creation of package workbook, the "X-CloudId" and "X-CloudXId" metadata properties are required to make an existing package updatable. Additional metadata properties that are automatically assigned by the MapleCloud include: "X-CloudGroup", "X-CloudId", "X-CloudURL", "X-CloudVersion", and "X-CloudXId".
 • The property_value that corresponds to the property_name may be a plain string (such as for title and description), or a list of strings (such as for authors and categories), or a reference to a workbook attachment (such as thumbnail).  When referencing a workbook attachment, use the absolute path to the filename relative to the root of the given workbook; for example, use "/Images/thumbnail.jpg" to refer to the image already attached to workbook.
 • The first argument, package, should be the name of a ".maple" file.

Examples

 > $\mathrm{with}\left(\mathrm{PackageTools}\right):$
 > $\mathrm{SetProperty}\left("mypack.maple","title","My Thesis"\right)$

Compatibility

 • The PackageTools[SetProperty] command was introduced in Maple 2017.