Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Clipboard.GetText
Queries clipboard content as text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Clipboard | 2.6 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
MBS( "Clipboard.GetText" { ; type } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
type | The data type. By default NSStringPboardType, but can be other Mac types. Mac only. |
"" | Optional |
Result
The text from the clipboard. Empty if no text is there.
Description
Queries clipboard content as text.Examples for type parameter: public.utf8-plain-text, CorePasteboardFlavorType 0x54455854, public.rtf,CorePasteboardFlavorType 0x75747874.
For server this will query the clipboard of the user account running the server app on the server computer and not the clipboard of any client.
Examples
Get text from clipboard:
MBS("Clipboard.GetText")
Query addressbook data from Contacts app:
MBS("Clipboard.GetText"; "ABPeopleDictPboardType")
Get design from clipboard after copying it in FileMaker:
MBS("Clipboard.GetText"; "dyn.agk8u")
See also
- Clipboard.AddText
- Clipboard.GetData
- Clipboard.GetFiles
- Clipboard.GetHTMLText
- Clipboard.GetPDF
- Clipboard.GetRTFText
- Clipboard.GetStyledText
- Clipboard.GetTypes
- Clipboard.SetRTFText
- Clipboard.SetText
Release notes
- Version 8.5
- Fixed issue with Clipboard.GetText not returning last byte for text.
- Version 8.2
- Changed Clipboard.GetText and Clipboard.SetText to work better with UTF16 on MacOS.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 8.5pr3
- MBS FileMaker Plugin, version 8.2pr6
- Comparing Base Elements Plugin to MBS FileMaker Plugin
- MBS Filemaker Plugin, version 4.2pr11
- MBS Filemaker Plugin, version 2.6pr7
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 24th February 2020
