Guide · checked 2026-09-10
How to copy a FileMaker script as text, and paste it back
FileMaker has no “copy as text” for scripts. When you copy steps in the Script Workspace, the clipboard holds FileMaker’s own XML, which only FileMaker can paste. Claris’s help suggests printing the script to a PDF and copying the text from there. FMScriptBridge (FMSB) converts that clipboard XML to clean, readable text and back again, losslessly, inside FileMaker, so you can edit a script in any editor or AI and paste the result straight back.
What Claris says
The FileMaker Pro help page on copying and pasting scripts, as of 2026-09-10:
“To copy a script as text, you can print the script to a PDF file, then copy the text from there.”
“You can paste scripts or script steps only to a FileMaker Pro file.”
That is the whole of the native answer, and it only goes one way. Developers have asked for more since at least 2008 on FMForums and repeatedly on the Claris Community:
- “Is it possible to copy scripts and paste to text editor app?”
- “Is there a way to paste scripts as text into script editor?”
- “How am I supposed to copy and paste into the script? Am I missing something obvious?”
What is actually on the clipboard
Not text. FileMaker puts an XML document on the clipboard
(developers call it fmxmlsnippet or “clipboard
XML”) under a private clipboard type: XMSS for
script steps, XMSC for whole scripts. The Script
Workspace pastes only those private types. Plain text pasted into
it is ignored, silently. Field, script and layout references
inside that XML are matched by name when you paste, which
is what makes moving steps between files work, and what makes a
faithful text conversion possible at all.
Why ChatGPT or Claude output will not paste
Because it is text, and the Script Workspace does not accept text. The question comes up in the same shape every time. One Claris Community thread is titled
“Anyone having trouble pasting from ChatGPT into a script. … I even pasted into the text editor and then tried to paste into the script. Still did not work.”
The text editor does not help; the clipboard type is the problem. Two things fix it. The AI’s output has to be written in a format that can be converted to FileMaker’s XML, and something has to do that conversion before you paste.
With FMScriptBridge, you paste the converted text into your chat, ask for the
change, copy the AI’s text, press the convert hotkey, and
paste into the Script Workspace. To make the AI write push-ready
text on the first try, give it the writing rules once: the
plug-in’s FMSB_CopyAISpec function copies them
to your clipboard, and an AI agent can fetch the same document at fmscriptbridge.com/spec.md. Text that
cannot be converted is refused at its line number, never pasted
wrong.
The ways developers get script text out today
Checked against each vendor’s own pages on 2026-09-10. Readable text out of FileMaker is not new: MBS has had a real button for it in the Script Workspace since well before this project existed. Getting readable text back in is the rare part, and doing it without a server is what FMSB adds.
| Tool | Out | Text back in? | Where it runs | Notes |
|---|---|---|---|---|
| Print to PDF, copy from the PDF | Readable text, one way | No | FileMaker | Claris's documented answer. Loses nothing, converts nothing back. |
| BaseElements · Codence FM Clipboard Tool | Raw fmxmlsnippet XML | XML only | Locally | Free. You edit XML, not script text. |
| MBS FileMaker Plugin | A real toolbar button in the Script Workspace (macOS): click for styled text, Option-click for HTML · XML both ways (15.4 clipboard converter) | XML only | Locally | The button predates FMSB by years. Text does not go back. |
| ai2fm | Readable text (their fmscript format) | Yes, via a VS Code extension | Server-side transform (their privacy policy); a local pipeline is announced for v3 | Free IDE layer; the conversion is a 21-day trial, then an annual subscription. |
| FMScriptBridge (FMSB) | Readable text | Yes, the same text, losslessly | Locally, inside FileMaker | No editor extension. Secrets scanned before the copy; references and calculations checked on paste. One-time license. |
Sources for this table
MBS sources: the Copy Text button tutorial (“We have a button in the Script Workspace for macOS to copy the text of the script… The text includes styles, so all the colors for the lines are included. If you press the option key, you get html text instead.”; toggle added plugin v5.2, the button itself older), the scriptable ScriptWorkspace.CopyScriptText function (v10.1, 2020, same result from a script), and the 15.4 clipboard-converter post for the XML half.
ai2fm’s privacy policy states that script XML or text “is transmitted over TLS to our transformation engine, processed in volatile memory only” ( source), and its home page announces a local pipeline for a future v3 ( source); this row will be revised when that ships. Read 2026-09-10. Product names belong to their owners.
How FMScriptBridge does it, step by step
-
Select steps in the Script Workspace and copy, as you always have.
-
Press the convert hotkey ⌘⇧C / Windows CtrlShiftC : The clipboard now holds clean, readable script text. If the steps contain a likely secret, the copy stops first and offers to redact it.
-
Paste anywhere: a text editor, a diff, ChatGPT, Claude, Cursor, a local model.
-
Edit, or let the AI edit. Copy the text.
-
Press the convert-and-paste hotkey ⌘⇧V / Windows CtrlShiftV : Every step pastes back exactly as FileMaker resolves it by name; a reference that no longer resolves, or a calculation that will not compile, is surfaced before it can break your script.
Both hotkeys are rebindable anytime in Configure.
All 216 script step types through FileMaker 2026 convert this way, and the round trip is verified on 293 real captured scripts. A step the plug-in does not yet recognize is preserved exactly as it was rather than guessed at. You can see a real round trip on the home page.
Does the script leave your machine?
No. The conversion runs inside FileMaker on your machine. The only network traffic is licensing (one call to activate or to start the free trial) and an optional daily check for a newer build. What reaches an AI is what you paste into it, after the secret scan, and nothing else. Details are on the privacy page.
Versions, platforms and price
Built and tested from FileMaker 2025 onward, current through FileMaker 2026. It does not load on FileMaker 2024 or older.
12 months of new builds are included from activation, and an optional one-time $39 update pass after that. Never a subscription.
Related: where your script goes with each tool · the calculation functions FMSB adds · release notes. Questions? Email [email protected].