Updated Troi File Plug-in for Claris FileMaker 2024 lets you create a file and set its contents in one step
Lienden, the Netherlands, June 4, 2024–Troi today announced the immediate availability of Troi File Plug-in 16.0 for Claris FileMaker 2024. Troi File Plug-in 16.0 is made compatible with Claris FileMaker Pro 21 (FileMaker Pro 2024), macOS 14 (Sonoma) and Windows 11 version 23H2.
We added new functionality and improved several functions of the plug-in and improved the code in several places, making the plug-in faster and more secure.
New functionality and improvements
- Added new function TrFile_CreateFileWithContents and new script step Create File with Contents, which can be used to create a new (data) file and fill it with (text) contents in one step. NOTE This function creates the file, keeps it open to add the data, then closes the file. This can be very useful if you don’t have append or update privileges on the file (for example in a drop folder).
- Added new switch “-GetPhotoshopIPTCDigest” to the TrFile_GetMetaData function: this will return the IPTC Digest that Photoshop (and other apps) can store as a PSD resource. It is a 32-bit MD5 hash, the plug-in can return for example “b4ad8c00bd98f20427ee98ecf8498009”.
- Updated the IPTC_XMP_Metadata.fmp12 example file, it now can get the IPTC Digest.
- (Windows) Improved the TrFile_ListFolder function, it can now also list folders where the total length of the folder path is longer than 260 (MAX_PATH) characters. In this case the function no longer returns a $$3 (ERROR_PATH_NOT_FOUND) error code.
Unicode improvements
- (macOS) When returning a file path the Unicode characters are now normalized (to the NFC normal form). This means that all characters are now precomposed. For example: ö will now always be returned as one Unicode point: U+00F6 (before this could be two code points: U+006F U+0308). The FileMaker platform internally expects precomposed characters.
This normalization is now implemented in these functions:- TrFile_DragAndDrop
- TrFile_ListDisks
- TrFile_ListFolder
- TrFile_ResolveAlias
- TrFile_Search
- TrFile_SelectFileDialog
- TrFile_SelectFolderDialog
- TrFile_SaveFileDialog
This normalization is also implemented in these script steps:
Improved Drag and Drop functionality
- Drag and drop is now compatible with FileMaker Pro 21.
- Improved handling of MailDrop in the DragAndDrop.fmp12 example: added support for decoding of subject headers that are encoded as base64 UTF-8 (these subjects start with: “Subject: =?utf-8?B”).
Improved thumbnail and metadata support
- Improved support for getting thumbnails from Photoshop files (with extension .psd) and Large Document Format Photoshop files (with extension .psb).
Also the plug-in now can fallback on thumbnails embedded in the PSD or PSB file, when other ways of creating thumbnails are not possible, for example when the color mode of the PSD file is multichannel.
Note that these embedded thumbnails are normally small in size, up to 160×160 pixels and the plug-in can only return thumbnails up to this size. - (macOS) Fixed a bug in the TrFile_CreateThumbnail function: when trying to create a thumbnail from unsupported file types (like for example .txt files) the file would stay open. When doing this repeatedly no more files could be opened and the error code $$24 would be returned.
- Improved the TrFile_CreateThumbnail function: improved support for EPS files.
- Improved the SetExif.fmp12 example file: EXIF GPS Altitude with values below sea level are now properly set.
- Improved the Set MetaData of Image File script step and the TrFile_SetMetaData function, with “-SetExif” switch: when setting the GPS AltitudeRef byte, the remaining 3 bytes are now set to zero (they could bet set to arbitrary data).
- (macOS) Added new switch “-AllowPDFUpscaling” to the TrFile_CreateThumbnail function. This will allow you to create larger sized thumbnails (with high quality) from smaller vector based PDFs. For example a vector based PDF has native dimensions of 128×40. When you add the switch you can create a crisp thumbnail with for example size 1280×400.
- Improved the Thumbnail.fmp12 example.
Improved security, increased speed and other changes
- Improved the security in several placed and updated the source code.
- Improved the speed of the TrFile_ListFolder function for folders with deep subfolders.
- (Windows) Fixed a memory leak in the TrFile_CreateFile function.
- (macOS) Fixed a small memory leak which occurred when the size of a file was requested.
- (macOS) Fixed a bug in the the TrFile_AsciiValueToText function when using the switch -Encoding=ASCII_Windows. The plug-in no longer crashes when you use values that are undefined for this encoding. The undefined values for this encoding (see Windows-1252 codepage) are 0x81, 0x8D, 0x8F, 0x90 and 0x9D (decimal: 129, 141, 143, 144 and 157). For compatibility with the plug-in running on Windows these values will now be added with the same values as a Unicode character.
- IMPORTANT The minimum supported FileMaker version is now FileMaker Pro 17. Also the minimum supported macOS version is now macOS 11 (Big Sur). For Windows the minumum supported version is Windows 10.
More detailed information on all changes and improvements implemented in Troi File Plug-in 16.0 can be found on the File Plug-in page.
Pricing & Availability
A fully functional demo version of Troi File Plug-in 16.0 is available on the File Plug-in page.
Licenses cost US$ 109 per user. Details on developer licenses and multi-user discounts can be found on the File Plug-in page. You can order licenses there or from our store.
Upgrade information
Version 16.0 needs a new registration. If you have a current subscription or if you bought a license on or after June 1, 2023, the upgrade is free. Eligible users have been sent a new v.16 registration code. Contact us if you have not received yours.
Upgrades from licenses bought before June 1, 2023, are available from US$ 69 per user. Upgrade prices for other licenses can be found on the File Plug-in web page or in the store. You can order upgrades there.