FileDialogWatcher.Install
-------------------------

Installs the required code to catch file names from open/save dialogs on Mac.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FileDialog](component_FileDialog.md) | [2.6](newinversion26.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "FileDialogWatcher.Install" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Installs the required code to catch file names from open/save dialogs on Mac.  
You need to call this method before [FileDialogWatcher.GetLastPath](FileDialogWatcherGetLastPath.md) reports something useful.  
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

- [FileDialogWatcher.GetLastPath](FileDialogWatcherGetLastPath.md)

### Release notes

- **Version 10.5**
    - Fixed an issue with [FileDialogWatcher.Install](https://www.mbsplugins.eu/FileDialogWatcherInstall.shtml) function.
- **Version 10.4**
    - Added [FileDialogWatcher.GetLastPath](https://www.mbsplugins.eu/FileDialogWatcherGetLastPath.shtml) and [FileDialogWatcher.Install](https://www.mbsplugins.eu/FileDialogWatcherInstall.shtml) for Windows in addition for macOS, but doesn't work as FileMaker uses older APIs.

### Example Databases

- [Files/FileDialogWatcher](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileDialogWatcher.shtml#3ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 10.5pr7](https://www.mbsplugins.de/archive/2020-11-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.4pr8](https://www.mbsplugins.de/archive/2020-09-04/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.5pr4](https://www.mbsplugins.de/archive/2016-10-25/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.9pr7](https://www.mbsplugins.de/archive/2012-09-11/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.6pr7](https://www.mbsplugins.de/archive/2012-03-16/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 4th September 2020

  
[FileDialogWatcher.GetLastPath](FileDialogWatcherGetLastPath.md) - [Files.AccessDate](FilesAccessDate.md)

[HTML Version](FileDialogWatcherInstall.shtml)