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
Puts RTF data on the clipboard.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Clipboard | 5.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
RTFText | The RTF data to put in clipboard. | "{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210 \cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\b\fs28 \cf0 Hello World}" |
|
Encoding | The text encoding for text parameter. Default is Windows ANSI. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
UTF8 | Optional |
Returns OK or error.
Put text on clipboard:
MBS( "Clipboard.SetRTFText"; "{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210
\cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
\f0\b\fs28 \cf0 Hello World}"; "UTF8" )
Put HTML on the clipboard via RTF:
Set Variable [ $r ; Value: MBS( "RichText.ReadHTML"; Assets::Description; "utf-8" ) ]
Set Variable [ $r ; Value: MBS( "Clipboard.SetRTFText"; MBS( "RichText.RTF" )) ]
This function checks for a license.
Created 17th November 2014, last changed 16th December 2022