Script Steps Reference
Table Of Contents
- Chapter 1 Introduction
- Chapter 2 Control script steps
- Chapter 3 Navigation script steps
- Chapter 4 Editing script steps
- Chapter 5 Fields script steps
- Set Field
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Index
- Insert From Last Visited
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert QuickTime
- Insert Object (Windows)
- Insert File
- Update Link (Windows)
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Chapter 6 Records script steps
- Chapter 7 Found Sets script steps
- Chapter 8 Windows script steps
- Chapter 9 Files script steps
- Chapter 10 Accounts script steps
- Chapter 11 Spelling script steps
- Chapter 12 Open Menu Item script steps
- Chapter 13 Miscellaneous script steps
- Appendix A Glossary
Chapter 13
|
Miscellaneous script steps 143
Examples
The following example resets the web viewer named “Web Viewer 1” to its originally
specified web address:
Set Web Viewer [Object Name: "Web Viewer 1"; Action: Reset]
The following example displays the FileMaker, Inc. home page in the active web viewer,
or displays an error message if the active object is not a web viewer:
If [GetLayoutObjectAttribute( Get (ActiveLayoutObjectName);
"objectType") = "web viewer"]
Set Web Viewer [Object Name: Get (ActiveLayoutObjectName);
URL: "http://www.filemaker.com"]
Else
Show Custom Dialog ["This object is not a web viewer."]
End If
Open URL
Format
Open URL [No dialog; <URL>]
Options
• Perform without dialog prevents the “Open URL” Options dialog box from
displaying when the script step executes.
•Click Specify to display the “Open URL” Options dialog box, where you can type the
URL directly in the text entry area or click Specify to create your URL from a
calculation.
Web compatibility
This script step is web-compatible.
Description
Windows:
Allows the user to open a URL. Open URL supports http, ftp, file, and mailto URL types.
For example, if the URL starts with http, FileMaker Pro opens the user's web browser and
processes the URL.
Note FileMaker Pro uses the preferences stored in the Windows system file URL.DLL to
determine the application to handle the URL. The URL is then passed to ShellExecute for
execution.
Mac OS: