RichText.Attribute
------------------

Queries an attribute value.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RichText](component_RichText.md) | [3.0](newinversion30.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "RichText.Attribute"; AttributeSelector ) 

**MBS**( **"RichText.Attribute";** /\* Queries an attribute value. \*/  
**$AttributeSelector**) /\* The name of the attribute to query. Can be Title, Company, Copyright, Subject, Author, Keywords, Comment, Editor, ModificationTime, Manager, Category or Type.e.g. "title" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AttributeSelector | The name of the attribute to query. Can be Title, Company, Copyright, Subject, Author, Keywords, Comment, Editor, ModificationTime, Manager, Category or Type. | "title" |

### Result

Returns attribute value or error.

### Description

Queries an attribute value.  
Added selector PaperSize in v9.2 to return two values with width and height of paper size.  
### Examples

Get title:

 $title = MBS ( "RichText.Attribute"; "Title")  
Get type of document:

 $title = MBS ( "RichText.Attribute"; "Type")  
### See also

- [RichText.SetAttribute](RichTextSetAttribute.md)

### Release notes

- **Version 9.2**
    - Added PaperSize option to [RichText.SetAttribute](http://www.mbsplugins.eu/RichTextSetAttribute.shtml) and [RichText.Attribute](http://www.mbsplugins.eu/RichTextAttribute.shtml) functions.

### Example Databases

- [Mac only/RichText/RichText](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/RichText/RichText.shtml#4ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 9.2pr6](https://www.mbsplugins.de/archive/2019-05-03/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 3th May 2019

  
[RichText.AppendText](RichTextAppendText.md) - [RichText.Clear](RichTextClear.md)

[HTML Version](RichTextAttribute.shtml)