Troi File Plug-in release notes

Below you can find the version history, with an overview of what has been changed in the current and previous versions of Troi File Plug-in.

Version 2.8.2 (for FileMaker 6) (February 5th, 2007)

  • Added -HideInvisibles as switch to "TrFile-Get FileSpec Dialog". Add it like this:
    External("TrFile-Get FileSpec Dialog", "Please select a file|| -HideInvisibles")

Version 2.8.1 (for FileMaker 6) (November 13th, 2006)

  • Added way to select packages.
  • This plug-in version 2.8.1 now also accepts registration of the newer version 3.5.2.

Version 2.8.0.3 (for FileMaker 6) (8-February-2005)

  • Improved MultiPDF.fp5 example file to work with Save as PDF option, as built-in in Mac OS X. Also improved handling when destination folder is on a different hard disk.

Version 2.8.0.2 (for FileMaker 6) (5-October-2004)

  • Changed an error code in TrFile-GetContents, so that it is the same on all platforms. When a file does not exist the function will no longer return $$6 on Windows, but $$-43 (fnfErr), as on Mac.

    IMPORTANT: please check your scripts as this might affect your error handling.

Version 2.8.0.1 (for FileMaker 6) (20-September-2004)

  • (Windows) Fixed a bug in TrFile_DeleteFolder. It no longer returns $$6, when deleting a folder and all its subfolders.
  • Changed an error code in TrFile_DeleteFolder, so that it is the same on all platforms. When a directory to delete is not empty the function will no longer return $$145 on Windows, but $$-47 (fBsyErr), as on Mac.

    IMPORTANT: please check your scripts as this might affect your error handling.

  • New: filtering on shown file types in the "TrFile-Get FileSpec Dialog" function is now also possible on Windows, and adds powerful wildcard filtering too. See the SelectFile.fp5 example file.
  • Improved the ImageImport.fp7 example file to work better with the extension .jpeg.
  • (Hidden) Multiple selection of files in the "TrFile-Get FileSpec Dialog" function is now possible. See the two TESTM scripts in the example file: SelectFile.fp5

Version 2.8 (for FileMaker 6) (29-June-2004)

  • Prepared plug-in for FileMaker 7: Converted example files to fp7 format.
  • The function "TrFile-GetPathTo" with the -CurrentFileName switch does not work with FileMaker Pro 7, and now returns in FileMaker 7 the error code "$$-4215" (kErrInvalidFMPVersion).Solution: use the build-in Get(FilePath) function. See the GetpathTo.fp7 example file in the download of File Plug-in 3.0, for an example on how to convert a FileMaker style path to a full path in the format the File Plug-in understands.
  • The function "TrFile-ReferenceToClip" does not work with FileMaker Pro 7, and now returns in FileMaker 7 the error code "$$-4215" (kErrInvalidFMPVersion). Solution: use the FileMaker 7 native way to import as a reference. See the RefPict.fp7 example file in the download of File Plug-in 3.0.
  • (Mac OS) The functions "TrFile-FileSpecToFullPath" and "TrFile-FullPathToFileSpec" will now pass on an error code, like for example $$-43.
  • (Windows) fixed a bug in TrFile-Get FileSpec Dialog, TrFile-Save FileSpec Dialog and TrFile-ContentsDialog functions. If you used these functions, the enclosing folder of the last selected file could not be deleted, Windows would say "Cannot delete folder: It is being used by another program.".
  • (Mac OS X) you can now launch folders.
  • (Windows) fixed a bug where TrFile-DeleteFile could return a random error code, when there was really no error.
  • (Mac OS X) When using the function TrFile-FindFolder with the "-Root" switch, it now returns the top folder on the startup disk folder (for example "Mac HD:") and no longer the System folder on the startup disk (for example "Mac HD:System:").

    IMPORTANT this may break a script if you assumed a result like: "Mac HD:System:".

  • (Windows) Instead of $$1 the date functions now return more descriptive (Mac like) error codes. This concerns these functions: TrFile-GetDateCreated, TrFile-GetTimeCreated, TrFile-GetDateTimeCreated, TrFile-GetDateModified, TrFile-GetTimeModified and TrFile-GetDateTimeModified.
  • (Windows) The TrFile-CopyFile, the TrFile-MoveFile and the TrFile-GetFileSize will now return Mac like error codes. For example they will return error code $$-48 instead of $$183 when a file already exists.
  • Improved example Import1Image.fp5.
  • (Windows) Improved ListFolder function: it no longer needs a backslash at the end.
  • (Windows download) Added forgotten Overview.fp5 file.

Version 2.7.1 (24-May-2004)

  • (Mac) Improved correct display of dialog messages, like when the plug-in has stopped working. Also moved resources to a range not affected by the FileMaker application.
  • (Windows) Removed possible beeping sound from TrFile-ReferenceToClip".
  • (Mac OS X) Improved example Import1Image.fp5, so that it now also works on Mac OS X.

Version 2.7 (19-Jan-2004)

  • Improved the "TrFile-MetaData" function. Added 2 new switches "-SourceMacCharSet" and "-SourceWinCharSet", to be used with the switch "-GetIPTC". IPTC data in image files can have either Mac or Windows encoded higher ASCII characters in IPTC texts. With these new switches you can tell the plug-in which character encoding you expect in the image files. Alternatively you can retrieve both encodings and then see which is best.

    NB: If you don't specify a CharSet switch, the plug-in uses the encoding of the platform it is running on.

  • (Mac OS X) Improved the "TrFile-ListFolder" function. Added support on Mac OS X for long filenames, up to 255 characters. By default the plug-in returns the truncated name. If you add the switch -longnames the plug-in can now return the long filenames.
  • (Mac OS X) Improved the "TrFile-Search" function. Added support on Mac OS X for long filenames, up to 255 characters. By default the plug-in returns the truncated name. If you add the switch "-longnames" the plug-in can now return the long filenames.
  • (Mac OS X) Improved the "TrFile-Search" function, you don't longer have to add a colon ":" after the diskname.
  • Added a switch "-CurrentAppFolder" to the TrFile-GetPathTo function, which returns the folder of the current running application. This is for example the folder of the FileMaker Pro application or the folder of the FileMaker runtime application.
  • (Mac OS X only) Changed behaviour of the switch "-CurrentApplication". This function now returns the FSSpec to the FileMaker application package (usually FileMaker Pro.app), instead of the carbon executable inside this package. So the full path will no longer be:

    "MacHD:Applications:FileMaker Pro 6 Folder:FileMaker Pro.app:Contents:MacOS:FileMaker Pro"

    Instead it will be:

    "MacHD:Applications:FileMaker Pro 6 Folder:FileMaker Pro.app:"

    Be aware that the FSSpec of this package is a folder!

    IMPORTANT this may break a script if you assumed the "Contents:MacOS:FileMaker Pro" was at the end. If you only want to find the folder of the FileMaker application use the new switch "-CurrentAppFolder".

  • (Windows NT/XP) Fixed a bug in the TrFile-Substitute function: if you substituted in place and the replace string was shorter than the search string, garbage text could be appended at the end of the file.
  • Fixed a bug in the TrFile-Substitute function: If you gave wrong parameter to the function (an empty source file string) the plug-in could crash. Now it properly returns $$-50 in this case.
  • (Mac OS X only) Fixed a bug in the TrFile-FileSpec To FullPath function where higher ASCII characters in the path, like u-umlaut, would not be returned correctly.
  • Improved example files: Removed pause in CreateFile.fp5 example; removed superfluous layout in FileManipulation.fp5 example and fixed link to Launch.fp5 in All File Examples.fp5.
  • Improved the Import1Image.fp5 example file. On Mac OS X it now splits the selected path correctly into path and name.
  • Improved the Image Catalog Sample File.
  • (Mac) Registration now also works if the registration file has a ".txt" extension at the end.

 

Version 2.6.1 (10-Mar-2003)

  • Added support on Mac OS X for mounting disks on WebDav servers (requires Mac OS X 10.2).
  • Added support on Mac OS X for long file names, up to 255 characters, in full paths and FSSpecs. For example in the TrFile-CopyFile and TrFile-MoveFile function you can now move and copy with file names longer than 31 characters.
  • Fixed a problem with slashes in path names or disk names on Mac OS X. In this case the Alias Manager would generate an error. The plug-in still tries the Alias Manager but if it fails it now also can fall back to a different method.
  • Fixed problem with getting the FSSpec of a disk name on Mac OS 9.x. The plug-in still tries the Alias Manager but if it fails it now also can fall back to a different method.
  • Improved TrFile-ReferenceToClip function for JPEG files. The image bounds are now determined, even if QuickTime is not installed.
  • Improved retrieving IPTC data. the switch "-GetIPTC" in the "TrFile-MetaData" function. Higher ASCII charactersin IPTC texts, like ü (u-umlaut), would not be returned.
  • Improved -GetExif in the "TrFile-MetaData" function. In JPEG files saved with Photoshop 7 this would sometimes fail.
  • Improved the example files: CreateFile.fp5, VTtoCR.fp5 and the SubstituteLineEnd.fp5, MountDisk.fp5, GetExif.fp5.
  • Removed the 68k code from the plug-in. This plug-in can no longer run on Mac 68k machines.
  • Updated the user guide.

 

Version 2.6 (10-Dec-2002)

  • Improved the "TrFile-Substitute" function. You can now use replace strings of up to 64000 characters, enabling for example to substitute tags in template files with longer replacements.
  • Added "TrFile-MountDisk" function, which can mount remote disks on a server.
  • Added "TrFile-UnmountDisk" function for Windows, so this function is now available on all platforms.
  • Added switch to "TrFile-DiskInfo" to check if a disk is a remote network disk.
  • Added switch to "TrFile-DiskInfo" to get the total and free amount of Mb of a disk.
  • Added switch to "TrFile-DiskInfo" to get the UNC name, like "//Server/share", from a drive letter (Windows only).
  • Added switch to "TrFile-DiskInfo" to get the drive letter, like "K:" from the UNC name (Windows only).
  • Added DiskMount.fp5 example file, showing mounting and unmounting of disks.
  • Improved the Import1Image.fp5 example file: improved scripts.
  • Improved the Attribute example file.
  • Improved the EXIF example file, removing old code.
  • User Guide: fixed 2 hotlinks.
  • Fixed a bug in the "TrFile-MetaData" function. The "-GetEXIF" now handles SHORT in an EXIF format better. With some files this could result in errors in the returned width, height or ISO.
  • Added a great Image Catalog.fp5 example template (together with SmallCo).
  • Fixed a problem with filtering files on Mac: you can now open all files of a given type (such as 'TEXT', for example) even if the creator is different.

 

Version 2.5 (03-June-2002)

  • Improved the "TrFile-Substitute" function. You can now substitute in the same file! You can do this by leaving the destination parameter empty or specifying the same source file and destination file.
  • Added a new switch -CurrentApplication to "TrFile-GetPathTo", which returns the path to the FileMaker Application.
  • Improved importing as a reference of EPS files. The bounding box is now better respected, which should result in better printing behaviour.
  • MP3 files can now also be imported as reference with the function "TrFile-ReferenceToClip" (Mac OS Only).
  • Improved "TrFile-MetaData" function. The "-getIPTC" switch now also works with IPTC data from certain files (especially files with a slightly different IPTC format, including Photoshop 6), instead of returning the error "$$-2026". Also added a new example files demonstrating IPTC parsing and EXIF parsing".
  • Added support for Photoshops ImageURL format. Use the function "TrFile-MetaData" with the switch"-GetImageURL" for this.
  • "TrFile-FindFolder" is now also available on Windows, and can for example return the desktop folder.
  • "TrFile-ListDisks" is now also available on Windows and returns the available disks, separated by a return, for example "C:<CR>D:<CR>E:<CR>".
  • Added Mac OS functionality to "TrFile-GetFileAttribute" to get the Finder Label and the Finder Comment, which are visible with the Get Info command in the Mac OS Finder.
  • Added new attributes you can set with "TrFile-SetFileAttribute": You can set the Finder Comment and Finder Label (Mac OS only).
  • Added Mac OS functionality to "TrFile-SetFileAttribute". You can now set the Creator and the FileType.
  • Added Windows functionality to "TrFile-DiskInfo" to get the Volume Serial Number (VSN) and the Volume Label of a hard disk.
  • Improved the "TrFile-Launch" function. On Windows you can now add extra parameters to the launch command, which are then given to the launching application.
  • Added 12 new example files, making a total of 32 and improved the existing ones.
  • New user guide.

 

Version 2.2 (10-June-2001)

  • Tested with FileMaker 5.5 and ported to Mac OS X. The Mac version of the plug-in is now a so called 'Super Fat' plug-in that will run on Mac OS 8, 9 and Mac OS X.
  • All selection dialogs now use Navigation Services when available (Mac).
  • Improved Import Image example file, fix bug with Win NT + FileMaker 5 and Added .PCT and .EPS as a supported extensions.
  • Made error codes more cross platform. Instead of the generic error codes $$-1, $$-2 and $$-3, a proper error code is returned. This affects only the Windows platform and these functions: * CreateFolder, now returns $$-48 on Mac and Windows if the folder already exists * If the file didn't not exist several functions returned the error code $$-1 on Windows. Now those functions return $$-43 on both Windows and Mac. examples are: SetContents, AppendContents, Substitute * instead of $$-2 and $$-3 proper error can now be returned.
  • Improved Version function. It now also can show the Flash Dialog and return a version buildnumber.
  • Fixed a bug in GetContents, where getting from the 2nd character would get from the 1st character instead.
  • Fixed a bug in "TrFile-GetDateCreated" and "TrFile-GetDateModified" on Windows. These function were returning the date derived from UTC (Coordinated Universal Time). This would some times result in creation or modification dates that were a day off. They now return the date based on the local time zone.
  • "TrFile-ThumbnailToClip" with the thumbnail size of 80 no longer uses the default Quicktime function, as it had problems with the positioning of the bounds (like displaying it in to the left in Preview mode).
  • Fixed a bug in Mac version of "TrFile-Search": now aliases are only returned when you ask for them.

 

Version 2.1.2 (22-September-2000)

  • Fixed a bug in "TrFile-ReferenceToClip" with the importing of BMP files (Win)
  • Improved the multi image import sample.
  • Added extra example file "CreateFolder". 

 

Version 2.1 (21-August-2000)

  • Added "TrFile-ReferenceToClip" function. See the user guide for details.
  • Added ThumbnailToClip for windows.
  • Added Diskinfo to retrieve the count of folders of a disk; see example file
  • Added -noDialog, bithDepth=8, size=128 options for ThumbnailToClip.
  • Mac: fixed a bug in GetPathTo, which would not work correct as a runtime (from developer 5)
  • Windows: fixed a bug in GetPathTo, which would not work correct as a runtime (from developer 5). NOTE: The fix is for Windows 95/98 only: We have not found a way to fix this in WindowsNT and Windows2000
  • Mac: Fixed a rare bug where the full path was not correctly handled. If you had 2 disksnames starting with the same beginning, like "KES" and "KES Work" CopyFile and MoveFile etc could return file on wrong disk, due to an Aliasmanager bug.
  • Windows: Improved handling of international characters, you can now save with higher ASCII in the prompt/filenames/path etc.

 

Version 2.0 (03-Apr-2000)

  • Added extra parameter for the initial Directory. to the functions "ContentsDialog", "Get FileSpec Dialog" and "Save FileSpec Dialog". Now you can specify where the selection dialog starts.

 

Version 2.0b1 (21-Mar-2000)

  • Added 12 functions: GetAttribute, SetAttribute, Substitute, DeleteFolder, SelectFolder, Disable/Enable Control, ConvertToFMText and ConvertFromFMText, GetPathTo (CurrentFile), (Get)MetaData, ListDisks (Mac), UnmountDisk.
  • Windows: Fixed a bug where a dialog message would appear with the text: "Couldn't close search handle". 

 

Version 1.5 (24-Feb-2000)

  • Added User Guide
  • Mac: Fixed a rare bug where the full path was not correctly handled. If you had 2 disksnames starting with the same beginning, like "KES" and "KES Work" CopyFile and MoveFile etc could return an errors.

 

Version 1.2.2.1 (12-Mar-1999)

  • Mac: added code to bring the Finder to front when launching a file, to be able to show dialogs like "The document "..." could not be opened, because the application program that created it could not be found."

 

Version 1.2.1 (10-Jan-99)

  • added a built-in 'register function' for developers of runtimes.
  • added the multi-import sample.
  • fixed a bug with CreateFile on Windows. If the file exists the CreateFile now returns error code $$-48 (Duplicate FileName). In this situation also on Mac $$-48 is returned (was $$-1)
  • added more example files (multi-image import, multi HTML export)

 

Version 1.2 (03-Jul-98)

  • clearer errorcodes returned by TrFile-Launch function.
  • added TrFile-FolderList function
  • added TrFile-Launch function
  • removed the startup flash screen. Now a flash screen is shown the first time the plug-in functionality is used. This flash screen is removed after payment of the licence fee.
  • added example demonstrating Multiple import and export.
  • added example demonstrating Multiple creation using PDFWriter.
  • improved handling of FSSpec to FullPath.

 

Version 1.1 (29-4-98)

  • added create folder
  • added find folder
  • added file copy and move
  • file copy now returns an errorcode if destination file exists
  • added partial read and appendToFile
  • added Multiple file export demonstration
  • split into 3 separate plugins: Troi Dialog Plug-in, Troi Coding Plug-in and Troi File Plug-in

 

Version 1.0 (29-1-98) First release

  • fixed a bug on 68k machines which disposed of a pointer improperly.