Help

Table Of Contents
Creating scripts to automate tasks
F
ILEMAKER PRO HELP 433
Application
Access to the FileMaker Pro application.
Properties
Note All properties are read-only except "Visible."
Application: Returns a pointer to this object, which is the root object of the object hierarchy.
Parent: Returns a pointer to this object.
FullName: Returns the name of the application, including the path.
Name( ): Returns the name of the application - "FileMaker Pro."
Caption: Returns the window title for the frame window. The FileMaker Pro caption is always set to
describe the currently active document and cannot be set differently by clients.
DefaultFilePath: Returns the default path specification used for opening files.
Documents: Returns a pointer to the Documents collection object so that individual Document
objects may be opened, accessed, and run through scripting.
Version: Returns the version of FileMaker Pro.
Visible: Returns TRUE if the application is visible. Set to TRUE to show the application, FALSE to
hide the application.
ScriptStatus( ): Returns 0 if no script is running, 1 if a script is paused, 2 if a script is running, or 3 if
a script is queued (selected to run but not yet started).
Methods
Quit( ): Closes the application. Note that if clients are still attached, the application is hidden until all
clients release the FileMaker
Pro automation server. To prevent unexpected behavior, always follow
a Quit statement with an object release statement. For example:
FMproApp.Quit
Set FMProApp = Nothing
Documents
This is the collection of open documents, or FileMaker Pro files.
Properties
Note All properties are read-only.
Application: Returns a pointer to the Application object.
Parent: Returns a pointer to the Application object.
Count: Returns the number of Documents (long integer) in the Document collection.
_NewEnum: Returns an enumerator object to traverse all the Document objects in the Document
collection. This is not an explicit property of the object, but accessible implicitly when you use the
document in a For loop.
Active: Returns the active document.
Item(variant): Returns a specific Document object from the collection. This method is the default
member of the Documents Collection. It takes a variant parameter that can be specified by:
• A string that represents the document’s filename (full path name).