WordGetInfo As String

 

Returns the value of the passed in key for Microsoft Word as a String.

 

Use this function do get more information about the installed version of  Microsoft Word.

When Word is not found on the current computer, then an empty String is returned.

If an error occurred, then "ERROR" is returned.

 

 

Parameters:

 

Name

Type

Description

Key

String

A  plist key for which we want to retrieve its value

 

Returns:

 

Type

Key

Example Value

String

CFBundleSignature

MSWD

String

DTSDKName

macosx10.5

String

DTPlatformBuild

10M2518

String

BuildMachineOSBuild

10K540

String

MicrosoftBuildNumber

141117

String

MicrosoftLocalizationLCID

1033

String

NSHumanReadableCopyright

© 2010 Microsoft Corporation. All rights reserved.

String

CFBundleExecutable

Microsoft Word

String

CFBundleHelpBookFolder

Help

String

CFBundleShortVersionString

14.4.7

String

CFBundlePackageType

APPL

String

NSAppleScriptEnabled

True

String

CFBundleHelpBookName

Word Help

String

DTSDKBuild

9L31a

String

DTXcodeBuild

10M2518

String

DTCompiler

4.2

String

CFBundleDisplayName

Microsoft Word

String

CFBundleDevelopmentRegion

en

String

LSRequiresNativeExecution

True

String

NSHighResolutionCapable

True

String

CFBundleName

Word

String

CFBundleVersion

14.4.7

String

LSApplicationCategoryType

public.app-category.productivity

String

CFBundleNumericVersion

340230144

String

LSHasLocalizedDisplayName

True

String

DTPlatformVersion

PG

String

DTXcode

0400

String

CFBundleGetInfoString

14.4.7 (141117), © 2010 Microsoft Corporation. All rights reserved.

String

CFBundleIdentifier

com.microsoft.Word

String

LSRequiresCarbon

True

String

CFBundleIconFile

MSWD

String

CFBundleInfoDictionaryVersion

6.0

 

Available in:

 

WindowMain

WindowLink

YES

YES

 

Hint: You can find references to XojoScripts which make use of this function by sending the following SQL statement to the database:

Select id,GUID, ScriptName,ScriptCode from im_scripts where ScriptCode Like '%WordGetInfo%'

 

Example XojoScript:

 

// Retrieve information about Microsoft Word

Dim v As String = WordGetInfo("CFBundleGetInfoString")

If v = "" Then

MsgBox "Information is not available!"

ElseIf v = "ERROR" Then

MsgBox "An error occured!"

Else

MsgBox v

End If