ssCore.Shell.getDefaultApplication

Return the associated application (from the Windows registry) for the selected document or extension.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

path - [Optional] - A fully qualified path to a document you want information about. The document specified by this argument does not have to exist, only the extension will be examined. This parameter supports monikers.

extension - [Optional] - An extension you want information about.

useFileExts - [Optional] - A boolean value that determines whether user registered file extensions will be used instead of the system and application defaults. If not specified, a default of false will be used. Valid values include: true and false.


Output Parameters:

result - A fully qualified path to the application registered to handle the specifed document or extension.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Shell.getDefaultApplication( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Shell.getDefaultApplication( paramsObject );


Notes:

None.


Examples:

var return_obj = ssCore.Shell.getDefaultApplication({extension:"pdf"});

ssDebug.trace(return_obj.result);