![Troi File Plug-in Online Help](https://www.troi.com/wp-content/uploads/SC4540b-File-Online-Help-600q70.jpg)
![]() |
TrFile_SetContents |
Sets the contents of an existing file indicated by the “SetDefaultFileSpec” function.
Syntax![Function badge](/wp-content/uploads/badge_function16x16.png)
TrFile_SetContents ( switches ; text )
![]() |
TrFile_SetContents |
Sets the contents of an existing file indicated by the “SetDefaultFileSpec” function.
TrFile_SetContents ( switches ; text )
![]() |
TrFile_SetContentsOfFile |
Sets the contents of a file.
TrFile_SetContentsOfFile ( switches ; filePath ; text )
![]() |
TrFile_SetDefaultCreator |
Specifies the file creator to be used when creating a new file. This creator will be used for subsequent calls to TrFile_CreateFile.
TrFile_SetDefaultCreator ( switches ; Creator )
![]() |
TrFile_SetDefaultFileSpec |
Indicates a FilePath (i.e. the file) to be used in succeeding functions where no FilePath is indicated.
TrFile_SetDefaultFileSpec ( switches ; filePath )
![]() |
TrFile_SetDefaultType |
Sets the fileTypes to be displayed when showing SelectFileDialog. Also sets the default file type when creating new files.
TrFile_SetDefaultType ( switches ; fileTypes )
![]() |
TrFile_SetFileAttribute |
Sets an attribute of the file specified by the filePath.
TrFile_SetFileAttribute ( switches ; filePath ; cftype ; comment )
![]() |
TrFile_SetFinderComment |
Sets the the finder comment of a file (macOS only)
TrFile_SetFinderComment ( switches ; filePath ; comment )
![]() |
TrFile_SetMetaData |
Sets metadata into an image file. Metadata can contain a description of the image, copyright information, etc.
TrFile_SetMetaData ( switches ; sourceFilePath ; destFilePath ;
metadatablock )
![]() |
TrFile_SetTimestampCreated |
Sets the creation date/time of the file specified by the filePath.
TrFile_SetTimestampCreated ( switches ; filePath ; timestamp )
![]() |
TrFile_StartDragSource |
Begins a source for drag and drop. Allows you to click and drag the (binary) contents of a container field as a file out of FileMaker into other applications.
TrFile_StartDragSource( switches ; sourceBinaryData { ; filename } )