App.GetDockIcon
---------------

Queries the dock icon.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [App](component_App.md) | [3.2](newinversion32.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

MBS( "App.GetDockIcon" { ; ImageType; FileName } ) 

**MBS**( **"App.GetDockIcon";** /\* Queries the dock icon. \*/  
**$ImageType**; /\* Optional; The type of image to return.   
Either JPEG, PNG, GIF or BMP. Default is JPEG.e.g. "JPEG" \*/   
**$FileName**) /\* Optional; The filename to use for the picture.   
Default is "image" with the extension matching the image type.e.g. "test.jpg" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageType | The type of image to return.    Either JPEG, PNG, GIF or BMP. Default is JPEG. | "JPEG" | Optional |
| FileName | The filename to use for the picture.    Default is "image" with the extension matching the image type. | "test.jpg" | Optional |

### Result

Returns image or error.

### Description

Queries the dock icon.  
Only queries a dock item image you set before with [App.SetDockIcon](AppSetDockIcon.md)  
Returns nothing if no image was set.  
### See also

- [App.SetDockIcon](AppSetDockIcon.md)

### Blog Entries

- [MBS Filemaker Plugin, version 3.2pr9](https://www.mbsplugins.de/archive/2013-04-27/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[App.GetDockBadgeLabel](AppGetDockBadgeLabel.md) - [App.GetFocussedWindowTitle](AppGetFocussedWindowTitle.md)

[HTML Version](AppGetDockIcon.shtml)