Brian Dunning's FileMaker Custom Functions

FTPList ( URL ; user ; password ; directory )

Creates a calculated Applescript to get the contents of an FTP server directory and copy to the clipboard.

  Average rating: 4.3 (32 votes) Log in to vote

Greg Torok   Greg Torok
Northwest Radiologists
http://nwrads.com

Share on Facebook Share on Twitter

  Sample input:
FTPList ( "127.0.0.1" ; "admin" ; "password" ; "Home/Textfiles" )
  Sample output:
textfile1.txt

textfile2.txt

textfile3.txt

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

This custom function creates a calculated Applescript to get the contents of an FTP server directory using CURL and copy to the clipboard. Use this function as a calculation for the Perform Applescript script step and follow it with a Paste script step to output the contents of the clipboard to a field.

The file list is returned with extra carriage returns in between each file name. You might want to filter these with a Substitute after pasting into a field.

This will only work on Mac OS X.

 

Comments

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.