Recontextualise code with fmAutoMate
Same fields, different TO
Problem
You need to change something in some FileMaker code, for example maybe the TO of every field in a portal to the new LayoutTable / PTO.
Solution
For a super-fast fix on a Mac you can use fmAutoMate > Find & Replace > Find & Replace ALL in XML
to recontextualise code in place
- In FileMaker
- ⌃⌘A to search and replace within (the XML of) the selected code.
Recontextualise Code Directly on the Clipboard
You can use fmAutomate’s Extended Commands to edit the text on the clipboard directly.
- In FileMaker
- ⌃⌘X to Xut out the code from FileMaker
- ⌃⌘K to show the fmAutoMate Extended Commands dialog
- Extended Command
- cba for clipboard all replace
- In dialog
- enter the search and replace strings + press ⏎ to replace on the clipboard
- In FileMaker
- ⌃⌘V to PaXte the changed code back into FileMaker