Product and version: FileMaker Pro Advanced 15.0.1 (Also tested in all versions of FM14
OS and version: Mac OS X 10.11
Searching within the Script Workspace will expand all sub-folders permanently. Closing the sub-folders and then searching again results in the sub-folders re-expanding.
How to replicate
Go to Script Workspace, create any number of folders that contain sub-folders. Search the Script Workspace.
Workaround (if any)
None. This is a huge annoyance especially coupled with using the Script Debugger because it means that you have to select all scripts and close them in order to use the Script Debugger, otherwise it is PAINFULLY slow (since FileMaker tries to redraw the entire Script Workspace every time you use the Step Into command in the Script Debugger.)