Process.FrontWindowTitle
------------------------

Queries name of the frontmost window.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Process](component_Process.md) | [4.2](newinversion42.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Process.FrontWindowTitle" { ; Index } ) 

**MBS**( **"Process.FrontWindowTitle";** /\* Queries name of the frontmost window. \*/  
**$Index**) /\* Optional; Optional for Mac. Pass -1 to return number of windows. Else pass index from 0 to count-1 to query title of nth window.e.g. "" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Index | Optional for Mac. Pass -1 to return number of windows. Else pass index from 0 to count-1 to query title of nth window. | "" | Optional |

### Result

Returns window title.

### Description

Queries name of the frontmost window.  
On macOS requires you to allow FileMaker accessibility functions. In System Preferences check privacy control panel and add FileMaker there to the list allowed for assistive input.  
### Examples

Query title of focused window:

 MBS ( "Process.FrontWindowTitle")  
Query on Mac number of Windows.

 MBS ( "Process.FrontWindowTitle"; -1 )  
Query on Mac the second window:

 MBS ( "Process.FrontWindowTitle"; 1 )  
### Example Databases

- [Utility functions/Process Info](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/Process%20Info.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 4.2pr4](https://www.mbsplugins.de/archive/2014-04-22/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 10th August 2020

  
[Process.FrontProcessName](ProcessFrontProcessName.md) - [Process.GetCurrentDirectory](ProcessGetCurrentDirectory.md)

[HTML Version](ProcessFrontWindowTitle.shtml)