isPlatformMac

boolean sutil.isPlatformMac ( )

Description

Determine if operating system is a Mac platform.

Parameters

This method does not receive parameters.

Return Values

Returns true if the operating system is Mac; otherwise, it returns false.

Change Log

Version Description
5.0 Added for all editions.

Examples

Check Mac Platform

 url = "http://www.foo.com/imgs/puppy_image.gif";

 // Determine download location based on platform
 if ( sutil.isPlatformLinux() )
 {
     session.downloadFile( url, "/home/user/images/puppy.gif" );
 }
 else if ( sutil.isPlatformMac() )
 {
     session.downloadFile( url, "/Volumes/Documents/images/puppy.gif" );
 }
 else if ( sutil.isPlatformWindows() )
 {
     session.downloadFile( url, "c:/images/puppy.gif" );
 }