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
http://www.t-seabird.de

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.

 

Comments

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 BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.