Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

FileDialogWatcher.GetLastPath

Queries the last path used in open/save dialogs.

Component Version macOS Windows Linux Server iOS SDK
FileDialog 2.6 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "FileDialogWatcher.GetLastPath" )

Parameters

none

Result

Returns text or error.

Description

Queries the last path used in open/save dialogs.
This returns native path like "/Users/cs/Desktop/test.jpg".
Use Path.NativePathToFileMakerPath to convert to a FileMaker path if you plan to use "filemac:" for an insert file script step.
Does not work with FileMaker 8.5, 9 or 10. Works with FileMaker 11 and 12.

Added support for Windows with version 10.4, but doesn't work for FileMaker's own dialogs.

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 9th November 2021


FileDialog.SetWindowTitle - FileDialogWatcher.Install