Skip to content

Clipboard manipulation

Donovan Chandler edited this page May 22, 2014 · 4 revisions

This set of functionality allows you to work with FileMaker objects on the clipboard. You can extract, manipulate, generate and load clipboard data! The objects are read in the text editor as XML. The XML is called an fmxmlsnippet.

Getting and Setting Snippets

There are two central commands for getting data from the clipboard and loading it to the clipboard:

Shortcut Name Action
⌘+Opt+B Get Snippet From Clipboard Opens FileMaker clipboard contents as new XML document
⌘+B Load Snippet to Clipboard Loads current XML document to FileMaker's clipboard as snippet

Note, you must have the current XML document assigned to the FileMaker Clipboard language in order to use these shortcuts.

Alternative Methods

See Getting the Clipboard (Into TextMate)

Example Workflow

Here's a very simple example of how a workflow might look:

  1. Copy script steps in FileMaker
  2. Switch to TextMate
  3. Get snippet from clipboard using ⌘-⌥-B
  4. Manipulate text
    • Change variable names
    • Change table occurrence names
    • Change function name
    • Add function parameter
  5. Load the snippet to FileMaker's clipboard using ⌘-B
  6. Switch to FileMaker
  7. Paste in your new script steps