Brian Dunning's FileMaker Custom Functions

AS_Files_Choose ( message ; allow_multiple ; default_location ; file_type_list ; global_result_field )

dialog to choose one or more files from a directory and return result to a global field

  Average rating: 4.1 (16 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_Files_Choose ( "choose some files please" ; 1 ; Get ( DocumentsPath ) ; "" ; table::textfield ) ]
  Sample output:
a list of file paths will be returned to the chosen global result field

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

creates a dialog to choose one or more files 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
file_type_list = set filters to allow selected file types as list "txt¶pdf"
result_field = the FileMaker field to return the result ( table::field ) using the current record.



Thomas Siebert   Thomas Siebert
Apr 22, 2017
- Name of CF changed
- The field to return the script result should be a global text field
Thomas Siebert   Thomas Siebert
Feb 20, 2018
better path's returning to FileMaker.
better returning value to FileMaker

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: