Brian Dunning's FileMaker Custom Functions

AS_text_export ( text ; thePath ; append_text )

create text file (Apple OS X only)

  Average rating: 4.6 (15 votes) Log in to vote

Thomas Siebert   Thomas Siebert

Share on Facebook Share on Twitter

  Sample input:
Perform AppleScript [ AS_text_export ( table::textfield ; Get ( DesktopPath ) & "test.txt" ; 0 ) ]
  Sample output:
creates text file "test.txt" on desktop.

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

create a text file

text = a text string or text field
thePath = standard POSIX path or a common FileMaker path
append_text = if 1 or true: append text to already existing text file

The script removes prefixes like "filemac:" or the name of the start volume like "/Macintosh HD/" from the path automatically.

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



Log in to post comments.


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

Under construction. Email me your wish list for improvements.