CUPS.GetPrinterCount
--------------------

Queries number of printers.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CUPS](component_CUPS.md) | [2.5](newinversion25.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [CUPS.GetPrintersAsJSON](CUPSGetPrintersAsJSON.md) instead.

MBS( "CUPS.GetPrinterCount" ) ### Parameters

none

### Result

The number of printers.

### Description

Queries number of printers.  
Please call this method before calling [CUPS.GetPrinterDefault](CUPSGetPrinterDefault.md) or [CUPS.GetPrinterName](CUPSGetPrinterName.md).  
  
Please consider using [CUPS.GetPrintersAsJSON](CUPSGetPrintersAsJSON.md) instead to query all printers with details.  
### Examples

Query number of printers

 $count = MBS ( "CUPS.GetPrinterCount" )  
### See also

- [CUPS.GetPrinterDefault](CUPSGetPrinterDefault.md)
- [CUPS.GetPrinterName](CUPSGetPrinterName.md)
- [CUPS.GetPrintersAsJSON](CUPSGetPrintersAsJSON.md)

### Release notes

- **Version 10.5**
    - Deprecated [CUPS.GetPrinterCount](https://www.mbsplugins.eu/CUPSGetPrinterCount.shtml), [CUPS.GetPrinterDefault](https://www.mbsplugins.eu/CUPSGetPrinterDefault.shtml), [CUPS.GetPrinterName](https://www.mbsplugins.eu/CUPSGetPrinterName.shtml), [CUPS.GetJobCompletionTime](https://www.mbsplugins.eu/CUPSGetJobCompletionTime.shtml), [CUPS.GetJobCreationTime](https://www.mbsplugins.eu/CUPSGetJobCreationTime.shtml), [CUPS.GetJobFormat](https://www.mbsplugins.eu/CUPSGetJobFormat.shtml), [CUPS.GetJobID](https://www.mbsplugins.eu/CUPSGetJobID.shtml), [CUPS.GetJobIndex](https://www.mbsplugins.eu/CUPSGetJobIndex.shtml), [CUPS.GetJobPrinter](https://www.mbsplugins.eu/CUPSGetJobPrinter.shtml), [CUPS.GetJobPriority](https://www.mbsplugins.eu/CUPSGetJobPriority.shtml), [CUPS.GetJobProcessingTime](https://www.mbsplugins.eu/CUPSGetJobProcessingTime.shtml), [CUPS.GetJobSize](https://www.mbsplugins.eu/CUPSGetJobSize.shtml), [CUPS.GetJobState](https://www.mbsplugins.eu/CUPSGetJobState.shtml), [CUPS.GetJobTitle](https://www.mbsplugins.eu/CUPSGetJobTitle.shtml), [CUPS.GetJobUser](https://www.mbsplugins.eu/CUPSGetJobUser.shtml) and [CUPS.GetJobsCount](https://www.mbsplugins.eu/CUPSGetJobsCount.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 10.5pr2](https://www.mbsplugins.de/archive/2020-10-05/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 5th October 2020

  
[CUPS.GetJobsCount](CUPSGetJobsCount.md) - [CUPS.GetPrinterDefault](CUPSGetPrinterDefault.md)

[HTML Version](CUPSGetPrinterCount.shtml)