Skip to content

Clipboard manipulation

DonovanChan edited this page Dec 7, 2011 · 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

To get the clipboard contents, you can also run the application below. This is a very fast and convenient method. Store it in your dock, in your scripts menu... anywhere. I like to call it using Quicksilver.

Get_Clipboard.zip

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 ⌘+Opt+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

Clone this wiki locally