typo(item, property, [value])
Sets text properties to the given item. If the item is not an instance the text property can be set to, the property gets set to the direct descendants of the given item, e.g. all stories of a given document.
If no value is given and the given property is a string, the function acts as a getter and returns the corresponding value(s) in an array. This can either be an array containing the value of the concrete item (e.g. character) the values of the item’s descendants (e.g. paragraphs of given text frame).
Type: function
Parameter(s):
- item {Document | Spread | Page | Layer | Story | TextFrame | TextPath | Text}:
The object to apply the property to.
- property {String | Object}:
The text property name or an object of key/value property/value pairs. If property is a string and no value is given, the function acts as getter.
- value {} Optional:
The value to apply to the property.
Returns:
-
{ | | }:
The property value(s) if the function acts as getter or the items the property was assigned to.