Printer.PrinterInfo
-------------------

Queries printer info.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Printer](component_Printer.md) | [6.5](newinversion65.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "Printer.PrinterInfo"; Name; Selector ) 

**MBS**( **"Printer.PrinterInfo";** /\* Queries printer info. \*/  
**$Name**; /\* The name of the printer.e.g. "LaserPrinter" \*/   
**$Selector**) /\* The selector for the value to query.e.g. "Name" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The name of the printer. | "LaserPrinter" |
| Selector | The selector for the value to query. | "Name" |

### Result

Returns value or error.

### Description

Queries printer info.  
Selectors on Mac: Name, Type, languageLevel (PostScript language level or zero). If you ask for deviceDescriptionKeys, you get a list of other keys available.  
Selectors on Windows: ServerName, PrinterName, ShareName, PortName, DriverName, Comment, Location, SepFile, PrintProcessor, Datatype, Parameters, SepFile, Priority, DefaultPriority, StartTime, UntilTime, Status, Jobs, AveragePPM, Status, Attributes.  
Attributes and Status are returned as numbers.  
If you pass "Keys" for selector, we return list of all available keys.  
### Examples

Queries type of Mac printer:

 MBS ("Printer.PrinterInfo"; "Brother DCP-8085DN"; "type")  
### See also

- [Printer.Print](PrinterPrint.md)
- [Printer.PrinterCount](PrinterPrinterCount.md)
- [Printer.PrinterName](PrinterPrinterName.md)
- [Printer.PrinterNames](PrinterPrinterNames.md)

### Release notes

- **Version 10.2**
    - Fixed bug with [Printer.PrinterInfo](https://www.mbsplugins.eu/PrinterPrinterInfo.shtml) function returning value for NSDeviceIsPrinter parameter.

### Example Databases

- [Printers/Printer Info](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Printers/Printer%20Info.shtml#1ScriptAnchor_)
- [Win Only/Printer Switch/PrinterToolWin/printerTool\_FM15](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Printer%20Switch/PrinterToolWin/printerTool_FM15.shtml#9ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 10.2pr8](https://www.mbsplugins.de/archive/2020-05-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2017, Seite 21](https://filemaker-magazin.de/neuigkeit/3961-Appetithappen-FMM_201705)

This function checks for a license.

Created 27th November 2016 , last changed 27th November 2016

  
[Printer.PrinterCount](PrinterPrinterCount.md) - [Printer.PrinterName](PrinterPrinterName.md)

[HTML Version](PrinterPrinterInfo.shtml)