Brian Dunning's FileMaker Custom Functions

AS_Folders_Choose ( message ; allow_multiple ; default_location ; invisibles ; package_contents ; result_field )

creates a dialog to choose one or more folders from a directory (macOS only)

  Average rating: 4.2 (19 votes) Log in to vote

Thomas Siebert   Thomas Siebert - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
Perform AppleScript [ AS_choose_folders ( "Speak to the User" ; 1 ; Get ( DesktopPath ) ; 1 ; 1 ; table::textfield ) ]
  Sample output:
choose one or more folders from the list dialog and return them to a text field of the current record

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

creates a dialog to choose one or more folders from a directory

message = set a message on top of the window
allow_multiple = 1 or true to enable selection of multiple files using the command key
default_location = set a default location using standard FileMaker style path
invisibles = show invisible items
package_contents = show contents of package folders
result_field = the FileMaker field to return the result ( table::field ) using the current record.

Use the ScriptStep "Perform AppleScript" using the option "Calculated AppleScript"
You also shall use "Perform AppleScript" directly from a button.

Die CF wird über den Scriptschritt "AppleScript ausführen" mit der Option "Berechnetes Script" genutzt.
"AppleScript ausführen" steht auch direkt in den Tastenkommandos zur Verfügung.



Thomas Siebert   Thomas Siebert
Apr 23, 2017
Function renamed
new subroutine to return result to any global text field or to a text field of the current record.

Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: