StartClipboardPalette
Back to ListDescription: FileMaker Developer tool: Opens a floating palette with two buttons, convert clipboard format from text to FileMaker compatible script steps, and the other way around.
Call options
FileMaker calculation
Set Variable [$res; ACF_Run("StartClipboardPalette";)]
QuickJS script executed inside ACF
const result = ACF_Run("StartClipboardPalette");
ACF call
JSON result = StartClipboardPalette();
Category: UTILITY
Function source:
function StartClipboardPalette()
JSON definition = JSON(
"id", "999",
"title", "Pasteboard Converter",
"subtitle", "Convert:",
"size", JSONarray(200, 200),
"labelPosition", "left",
"rows", JSONarray(
JSON(
"fields", JSONarray(
JSON(
"name", "Field",
"label", "",
"type", "buttonBar",
"layout", "vertical",
"buttons", JSONarray(
JSON(
"id", "toFM",
"label", "To FileMaker",
"action", JSON(
"function", "ClipboardConverter",
"params", JSONarray("-p", "{}"),
"returnAction", "apply"
)
),
JSON(
"id", "toTXT",
"label", "To Plain text",
"action", JSON(
"function", "ClipboardConverter",
"params", JSONarray("-DTP", "{}"),
"returnAction", "apply"
)
)
)
),
JSON(
"name", "msg",
"label", "",
"type", "textarea",
"readonly", true,
"height", 40
)
),
"values", JSONarray("", "")
)
),
"buttons", JSONarray(
JSON("id", "ok", "label", "Close", "default", true)
)
);
JSON result = open_palette(definition);
return result;
end
// Helper function used by the action method on the buttons.
function ClipboardConverter(string ddrparsercmd, JSON dialogvalues)
string res = SystemCommand ("DDRparser " + ddrparsercmd);
dialogvalues["values.msg"] = res;
return dialogvalues;
end
The StartClipboardPalette
FileMaker Script-steps cannot be copied into text editors or AI chat dialogs. Also AI responces with script step suggestions cannot be copied directly into FileMaker script steps.
To Solve this, we made clipboard converter into the DDRparser command-line utility.
This function when run from FileMaker, opens a floating palette with two buttons, one for each direction of the conversion.
Then AI - responces can easely be copied into FM script workspace, and the other way around.

The Window is floating, and placed in the bottom corner of the screen, so it's always available.
Require ACF-Plugin v/1.8.0.7 and DDRparser 1.4.12 installed to run.
