Component: Clipboard 
---------------------

Get and set clipboard text.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [2.6](newinversion26.md "First functions introduced with version 2.6.") / [14.1](newinversion141.md "Newest functions in version 14.1.") | ✅ Yes | ✅ 95% | ❌ No | ❌ No | ✅ 81% |

  
| Item | Details |
|:--|:--|
| [Clipboard.AddText](ClipboardAddText.md)   Adds text to the clipboard. | Mac only   13.2 |
| [Clipboard.Clear](ClipboardClear.md)   Clears the clipboard content. | Mac/Win/iOS   14.1 |
| [Clipboard.DetectFileMakerDataType](ClipboardDetectFileMakerDataType.md)   Checks which type of data is in the XML. | Mac/Win   10.1 |
| [Clipboard.GetData](ClipboardGetData.md)   Queries data from clipboard item. | Mac/Win/iOS   4.4 |
| [Clipboard.GetFileMakerData](ClipboardGetFileMakerData.md)   Queries the xml text of a FileMaker layout/script object. | Mac/Win   4.0 |
| [Clipboard.GetFiles](ClipboardGetFiles.md)   Queries file paths on the clipboard. | Mac/Win/iOS   5.1 |
| [Clipboard.GetHTMLText](ClipboardGetHTMLText.md)   Queries styled text from clipboard as HTML. | Mac/Win/iOS   6.0 |
| [Clipboard.GetPDF](ClipboardGetPDF.md)   Queries PDF in the clipboard. | Mac/Win/iOS   12.2 |
| [Clipboard.GetPicture](ClipboardGetPicture.md)   Queries a picture from clipboard. | Mac/Win/iOS   6.3 |
| [Clipboard.GetRTFText](ClipboardGetRTFText.md)   Queries styled text from clipboard as RTF. | Mac/Win/iOS   5.0 |
| [Clipboard.GetStyledText](ClipboardGetStyledText.md)   Queries styled text from clipboard. | Mac/Win/iOS   5.0 |
| [Clipboard.GetText](ClipboardGetText.md)   Queries clipboard content as text. | Mac/Win/iOS   2.6 |
| [Clipboard.GetTypes](ClipboardGetTypes.md)   Queries the list of data types on the clipboard. | Mac/Win/iOS   4.0 |
| [Clipboard.SetFileMakerData](ClipboardSetFileMakerData.md)   Puts the xml text on the clipboard for a FileMaker layout/script object. | Mac/Win   4.0 |
| [Clipboard.SetFiles](ClipboardSetFiles.md)   Puts a list of file paths on the clipboard. | Mac/Win/iOS   5.1 |
| [Clipboard.SetHTMLText](ClipboardSetHTMLText.md)   Puts HTML data on the clipboard. | Mac/Win/iOS   6.0 |
| [Clipboard.SetPDF](ClipboardSetPDF.md)   Puts PDF in the clipboard. | Mac/Win/iOS   12.2 |
| [Clipboard.SetPicture](ClipboardSetPicture.md)   Sets clipboard picture. | Mac/Win/iOS   6.3 |
| [Clipboard.SetRTFText](ClipboardSetRTFText.md)   Puts RTF data on the clipboard. | Mac/Win/iOS   5.0 |
| [Clipboard.SetStyledText](ClipboardSetStyledText.md)   Put styled text on the clipboard. | Mac/Win/iOS   5.0 |
| [Clipboard.SetText](ClipboardSetText.md)   Sets the text on the clipboard. | Mac/Win/iOS   2.6 |

21 functions shown.

These functions require a license (86%).

### Release notes

- **Version 15.2**
    - Upgraded NSAttributedString handling to better work with postscript font names. This affects [Clipboard.SetStyledText](https://www.mbsplugins.eu/ClipboardSetStyledText.shtml), [Clipboard.GetStyledText](https://www.mbsplugins.eu/ClipboardGetStyledText.shtml) and other functions on macOS using styled text.
- **Version 14.5**
    - Improved styled text conversion on macOS to include better support for highlight, underline and strikethrough, e.g. for [RichText.SetFormattedText](https://www.mbsplugins.eu/RichTextSetFormattedText.shtml) and [Clipboard.SetStyledText](https://www.mbsplugins.eu/ClipboardSetStyledText.shtml) functions.
- **Version 14.4**
    - Fixed a memory leak in [Clipboard.SetFileMakerData](https://www.mbsplugins.eu/ClipboardSetFileMakerData.shtml), [Clipboard.DetectFileMakerDataType](https://www.mbsplugins.eu/ClipboardDetectFileMakerDataType.shtml) and [XML.Import](https://www.mbsplugins.eu/XMLImport.shtml) functions.
- **Version 14.1**
    - Added [Clipboard.Clear](https://www.mbsplugins.eu/ClipboardClear.shtml) function.
    - Added fallback to [Clipboard.GetText](https://www.mbsplugins.eu/ClipboardGetText.shtml) for Windows to read ANSI text if unicode text is not available.
    - Improved [Clipboard.GetRTFText](https://www.mbsplugins.eu/ClipboardGetRTFText.shtml), [Clipboard.GetHTMLText](https://www.mbsplugins.eu/ClipboardGetHTMLText.shtml), [Clipboard.GetStyledText](https://www.mbsplugins.eu/ClipboardGetStyledText.shtml) and Clipboard\_GetText for Windows to strip out an ending NULL character if the other application added it to the clipboard text.
    - Improved our RTF parser for [Text.TextToRTF](https://www.mbsplugins.eu/TextTextToRTF.shtml) and [Clipboard.GetStyledText](https://www.mbsplugins.eu/ClipboardGetStyledText.shtml) function.
- **Version 13.2**
    - Added [Clipboard.AddText](https://www.mbsplugins.eu/ClipboardAddText.shtml) function.
    - Improved [Clipboard.GetTypes](https://www.mbsplugins.eu/ClipboardGetTypes.shtml) for Windows to report format list better.
- **Version 13.1**
    - Added Windows support for [Clipboard.SetPDF](https://www.mbsplugins.eu/ClipboardSetPDF.shtml) and [Clipboard.GetPDF](https://www.mbsplugins.eu/ClipboardGetPDF.shtml) functions.
    - Fixed [Clipboard.SetPicture](https://www.mbsplugins.eu/ClipboardSetPicture.shtml) to better pass transparency.
    - Improved [Clipboard.GetPicture](https://www.mbsplugins.eu/ClipboardGetPicture.shtml) to take JPEG, PNG or GIF directly from the clipboard if available. Falls back to bitmap if that is not available.
    - Improved [Clipboard.SetPicture](https://www.mbsplugins.eu/ClipboardSetPicture.shtml) to put PNG on the clipboard in addition to a bitmap for applications, that can read PNG forever.
- **Version 12.2**
    - Added [Clipboard.GetPDF](https://www.mbsplugins.eu/ClipboardGetPDF.shtml) and [Clipboard.SetPDF](https://www.mbsplugins.eu/ClipboardSetPDF.shtml) functions.
    - Added Menu and MenuSet as types for [Clipboard.DetectFileMakerDataType](https://www.mbsplugins.eu/ClipboardDetectFileMakerDataType.shtml) function.
- **Version 12.0**
    - Enhanced [Clipboard.DetectFileMakerDataType](https://www.mbsplugins.eu/ClipboardDetectFileMakerDataType.shtml) and [Clipboard.SetFileMakerData](https://www.mbsplugins.eu/ClipboardSetFileMakerData.shtml) to recognize script folders.
- **Version 11.5**
    - Fixed crash in [Clipboard.SetFileMakerData](https://www.mbsplugins.eu/ClipboardSetFileMakerData.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 14.1](https://www.mbsplugins.de/archive/2024-03-19/New_in_MBS_FileMaker_Plugin_14/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 14.0 for Claris FileMaker](https://www.mbsplugins.de/archive/2024-01-16/MBS_FileMaker_Plugin_140_for_C/monkeybreadsoftware_blog_filemaker)
- [Search scripts in FileMaker for Windows](https://www.mbsplugins.de/archive/2023-12-20/Search_scripts_in_FileMaker_fo/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 13.1 for Claris FileMaker](https://www.mbsplugins.de/archive/2023-03-07/MBS_Plugin_131_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 12.2](https://www.mbsplugins.de/archive/2022-06-09/MBS_FileMaker_Plugin_122/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 8.2 - More than 5200 Functions In One Plugin](https://www.mbsplugins.de/archive/2018-05-22/MBS_FileMaker_Plugin_82_-_More/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 7.2](https://www.mbsplugins.de/archive/2017-05-15/MBS_FileMaker_Plugin_72/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 6.0 for OS X/Windows](https://www.mbsplugins.de/archive/2016-01-28/MBS_FileMaker_Plugin_60_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 5.1 for OS X/Windows](https://www.mbsplugins.de/archive/2015-05-19/MBS_FileMaker_Plugin_51_for_OS/monkeybreadsoftware_blog_filemaker)
- [New cool things for Filemaker](https://www.mbsplugins.de/archive/2012-03-17/New_cool_things_for_Filemaker/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2026, Seite 6 bis 7](https://filemaker-magazin.de/neuigkeit/4312-Die-neue-Ausgabe-FMM_202601-steht-online)
- [Ausgabe 1/2026, Seite 10](https://filemaker-magazin.de/neuigkeit/4312-Die-neue-Ausgabe-FMM_202601-steht-online)
- [Ausgabe 3/2021, Seite 28](https://filemaker-magazin.de/neuigkeit/4145-Appetithappen-FMM_202103)
- [Ausgabe 6/2020, Seite 28 bis 29](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)
- [Ausgabe 3/2017, Seite 14 bis 15](https://filemaker-magazin.de/neuigkeit/3938-Appetithappen-FMM_201703)

### Example Databases

- [Clipboard](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Clipboard.shtml#1Button25.0000000422.000000050.0000000535.0000000LayoutObjectAnchor_)
- [HotKeys](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/HotKeys.shtml#5ScriptAnchor_)
- [Mac and iOS/Data Detector](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Data%20Detector.shtml#2ScriptAnchor_)
- [Mac only/Script Workspace Context Menu Commands](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Script%20Workspace%20Context%20Menu%20Commands.shtml#3ScriptAnchor_)
- [Third Party/FileMaker Snippet Storage](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Third%20Party/FileMaker%20Snippet%20Storage.shtml#1ScriptAnchor_)
- [Utility functions/Create Sort Script](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/Create%20Sort%20Script.shtml#3ScriptAnchor_)
- [WebViewer/WebView Copy and Paste](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebView%20Copy%20and%20Paste.shtml#1Button11.0000000687.000000045.0000000793.0000000LayoutObjectAnchor_)
- [Win Only/Search Scripts](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Search%20Scripts.shtml#1ScriptAnchor_)
- [Win Only/Snippets for Windows](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Snippets%20for%20Windows.shtml#3ScriptAnchor_)
- [XML/XML Colorize](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/XML/XML%20Colorize.shtml#1ScriptAnchor_)

[HTML Version](component_Clipboard.shtml)