Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Queries clipboard content as text.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Clipboard 2.6 Yes Yes No No Yes
MBS( "Clipboard.GetText" { ; type } )   More


Parameter Description Example value
type Optional
The data type.
By default NSStringPboardType, but can be other Mac types.
Mac only.


The text from the clipboard. Empty if no text is there.


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.


Get text from clipboard:


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

Example Databases

Blog Entries

Release notes

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

Clipboard.GetStyledText   -   Clipboard.GetTypes

Feedback: Report problem or ask question.

MBS Xojo Plugins