Developer’s Guide

Table Of Contents
4-14 Developer’s Guide
5. Select Make playable on non Apple computers.
The first time you play a movie from another platform,
FileMaker Pro prompts you for the location of the movie. Keep the
files in a common folder and avoid choosing the wrong file—this
could lead to unexpected results.
Showing the status bar in Windows
FileMaker Pro for Windows includes an option to show the status
bar, which allows users to specify whether status bar information at
the bottom of a window is visible or not.
If your layouts are designed to take up most of the available screen
space, users can deselect this option in FileMaker Pro or in your
runtime application to make more room.
Status bar help
To show the status bar:
Choose View menu > Status Bar.
A check mark next to the menu item indicates that the option is
selected.
Using separate scripts for printing
Scripts that include Page Setup/Print Setup and Print commands are
not 100% compatible across platforms. The print steps in the
ScriptMaker feature rely upon the current printer driver in order to
determine the paper sizes that are available, page orientation, and so
on. Even if a computer using Windows and another using the
Mac OS are connected to the same printer, the drivers themselves are
significantly different—so FileMaker Pro is unable to restore page
setup and print options across platforms.
To work around this, you can do the following:
1. Create separate scripts for Windows and Mac OS. First, open the
file on your Windows machine and create the script for printing from
Windows. Then, move the database file to the Mac OS machine and
create the script for printing from the Mac OS.
2. In ScriptMaker, use the If script step and the Status
(CurrentPlatform) function in both scripts to determine whether to
run the Windows or the Mac OS script. For more information, see
“Using the Status (CurrentPlatform) function” next.
3. Make sure the Perform Without Dialog option for the Print script
step is not selected. This will allow users to change the setup options
before they print.
4. In Layout mode, choose Layouts menu > Layout Setup, select Fixed
Page Margins, and specify margins for Top, Bottom, Left, and Right.
Using the Status (CurrentPlatform) function
FileMaker Pro includes a status function that lets you determine the
platform on which the database solution is being run. This allows
you to perform different script actions such as changing to a different
layout or performing a platform-specific script step. The Status
(CurrentPlatform) function returns an integer value that identifies the
current operating system. For example, the function returns 1 in
Mac OS 9 or earlier, and -1 in Mac OS X. See the onscreen Help for
complete information about integer values.
Use this function with the If script step to perform different actions
depending on the current platform.
If [“Status (CurrentPlatform) = 1]
Perform Script [Sub-scripts, “Print in Mac OS”]
Else
Perform Script [Sub-scripts, “Print in Windows”]
End If