AnsweredAssumed Answered

Choose script: search fails after file reference change

Question asked by mrwatson-gbs on Jan 27, 2016
Latest reply on May 22, 2016 by mrwatson-gbs

Product and version FileMaker Pro 14.0.4

OS and version Mac OS X El Capitan - but probably irrelevant

Hardware - MBP - but probably irrelevant



When choosing a script in a Perform Script script step the search function sometimes returns incorrect results.


There are in fact two bugs here:


  1. AFTER changing the file reference => ALL scripts are shown instead of the the search being refreshed for the newly selected file
  2. AFTER changing the file reference and performing a new search => matching scripts that are located in folders are shown along with the entire folder + contents


Note: THIS IS AN IMPORTANT BUG TO FIX! Because when folders contain a lot of scripts - which they inevitably do - this bug makes selecting scripts a nightmare.


@all developers suffering from this problem see the WORKAROUND below, at least, until FMI fixes it in the next minor release ;-)



How to replicate


  1. Create two files A+B with several scripts, with foo, bar or baz in the name and with SOME scripts in folders (see pics)

    Screen Shot 2016-01-27 at 10.10.08.png
    (Note: the red color is an error found using the MBS Plugin and fmSyntaxColorizer - part of the fmWorkMate tool)

    Screen Shot 2016-01-27 at 10.11.51.png


  1. Create an external reference from A to B
  2. In File A add a perform script step, open the choose script dialog and search for foo -> the search works, with ONLY the scripts being shown (no folders)

    Screen Shot 2016-01-27 at 10.13.14.png

  3. Now change the file reference to file B -> ALL scripts are shown (Bug#1)

    Screen Shot 2016-01-27 at 10.14.07.png

  4. Now search for baz -> gives incorrect results (Bug#2), showing not only scripts but folders + entire folder contents

    Screen Shot 2016-01-27 at 10.15.56.png

  5. Workaround: Choose a random script in file B and close the choose script dialog
  6. Reopen the choose script dialog and search for bad again -> the search works

    Screen Shot 2016-01-27 at 10.20.05.png




  • Change the file reference
  • Choose a random script
  • Click OK
  • Reopen the choose script dialog
  • Enter search term => only the correct scripts are listed