ChatGPT on macOS can now directly edit code - can it work for Filemaker?

How does he pasted the script steps back in with that video you shared?https://www.youtube.com/watch?v=uwbSyAELVRM

I can use MBS to copy, but I don't see a way to paste them back in.

Most likely, his AI generates the underlying XML for the script steps, something we do not see on screen (the AI only shows the human readable format). He clicks on a dedicated button inside his customized AI tool to retrieve that XML and inject that into his clipboard before pasting the result in FileMaker.

ClipboardTransfer.fmp12 (272 KB)

I built this little example file of how you can transfer various FileMaker components to and from XML back to FileMaker clipboards so they can be pasted.

I use this for transferring schema from a remote desktop to a local environment by copying FileMaker schema to the text clipboard as XML, and then restoring the clipboard at the other end back to FileMaker pasteable content.

Same concept for the above, you can copy any valid FileMaker XML and use it to put it onto the clipboard for pasting into script workspace, fields, tables etc.

1 Like

If file size is an issue ( XML is so verbose ) you can use checkboxes in the DDR dialog creation box to select the elements you want. You can produce a DDR for tables alone.

Also note that the newer Save as XML is more complete than DDR. Although it requires a bit more effort to handle.

1 Like

You can use MBS to paste them back in. Here's a file I made 6 years ago that's making me feel old, but does exactly that with MBS: GitHub - jwillinghalpern/mbs_clipboard: FM file for converting FM objects to XML and back

But my preference is to use AppleScript and Typinator together so that I don't need to point and click, I can do it all from the keyboard. But there's nothing wrong with having a little UI and MBS plug-in.

2 Likes

You guys are awesome. This is brilliant!

1 Like