Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

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

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 24th February 2020


Clipboard.GetStyledText - Clipboard.GetTypes

💬 Ask a question or report a problem