Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  

Clipboard.GetText

Queries clipboard content as text.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Clipboard 2.6 Yes Yes Yes No Yes

MBS( "Clipboard.GetText" { ; type } )

Parameters

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

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")

See also

Example Databases


Clipboard.GetStyledText   -   Clipboard.GetTypes

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins