Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

CUPS.GetDefaultPrinterName

Get the default printer or class for the default server.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CUPS 2.5 Yes No Yes, macOS only No No

MBS( "CUPS.GetDefaultPrinterName" )

Parameters

none

Result

The name of the default printer.

Description

Get the default printer or class for the default server.
This function returns the default printer or class as defined by the LPDEST or PRINTER environment variables. If these environment variables are not set, the server default destination is returned.
Returns empty string if no default printer is defined.

Examples

Query default printer name:

$result = MBS( "CUPS.GetDefaultPrinterName" )

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


CUPS.CancelJob   -   CUPS.GetJobCompletionTime

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins