applyParagraphStyle(text, style)
Applies a paragraph style to the given text object, text frame or story. The paragraph style can be given as name or as paragraph style instance.
Type: function
Parameter(s):
- text {TextFrame | TextObject | Story}:The text frame, text object or story to apply the style to. 
- style {ParagraphStyle | String}:A paragraph style instance or the name of the paragraph style to apply. 
Returns:
- 
    {Text}:
 The text that the style was applied to.