Microsoft Word Suite
260
Command: get default file path
Returns the default folders for items such as documents, templates, and graphics.
Note The path doesn't include a trailing character; for example,
Macintosh HD:Applications:Microsoft Office 2004. To add the character that separates folders and
volumes, use the path separator property.
Syntax
get default file path
file path type enumeration Required. The default folder to return. Can be one of the following:
auto recover path, border art path, current folder path, documents path, graphics filters
path, office path, pictures path, program path, proofing tools path, startup path, style
gallery path, temp file path, text converters path, tools path, trash path, tutorial path, type
libraries path, user options path, user templates path, or workgroup templates path.
Example
This example returns the current default path for user templates (corresponds to the default path
setting in the File Locations pane of the Preferences dialog box).
get default file path file path type user templates path
Command: get default theme for
Returns the name of the default theme plus the theme formatting options Word uses for new
documents, e-mail messages, or Web pages.
Syntax
get default theme for
theme type enumeration Required. The type of new document for which you want to retrieve
the default theme name. Can be one of the following: for a document, for a email message, or
for a web page.
Example
This example displays the name of the theme Word uses for new Web pages.
display dialog (get default theme for theme type for a web page)
Command: get dialog
Returns a dialog object that represents the specified built-in dialog box in Word.
Syntax
get dialog enumeration Required. The dialog type constant for the dialog box you want to return.
The dialog type constants are formed from the prefix dialog followed by the name of the
menu and the dialog box. For example, the constant for the Page Setup dialog box is dialog
file page setup, and the constant for the Project Gallery dialog box is dialog file new.
Example
The following example displays and carries out the actions taken in the built-in Open dialog box
(File menu).
show (get dialog dialog file open)