Guide to Updating Plug-ins

8
Guide to Updating Plug-ins
Mac OS
To store plug-in files on a Mac OS server, create a folder in the AutoUpdate folder named after the
plug-in, and a subfolder for each version of the plug-in. Store the plug-in file in the version subfolder.
Examples:
/Library/FileMaker
Server 7/Data/Databases/AutoUpdate/FMS_Sample_PlugIn
/1.0/
/Library/FileMaker Server 7/Data/Databases/AutoUpdate/FMS_Sample_PlugIn
/1.0/FMS_Sample_PlugIn.fmx
/Library/FileMaker Server 7/Data/Databases/AutoUpdate/FMS_Sample_PlugIn
/1.0/FMS_Sample_PlugIn.fmplugin.tar
/Library/FileMaker Server 7/Data/Databases/AutoUpdate/FMS_Sample_PlugIn
/2.0/FMS_Sample_PlugIn.fmx
/Library/FileMaker Server 7/Data/Databases/AutoUpdate/FMS_Sample_PlugIn
/2.0/FMS_Sample_PlugIn.fmplugin.tar
Important
To function properly on Mac OS, plug-ins and the folders in which they are stored must have
the following file permissions:
To do this:
1.
Launch the Terminal application ([hard disk]/Applications/Utilities/Terminal).
2.
Navigate to the parent folder of the file or folder whose permissions you intend to change and enter
the following at the command line:
chmod g+rx <filename or folder>
Setting up Auto Update in your database
There are several ways to set up Auto Update in your database. This guide describes one way, which
uses simple script steps and global fields, and is based on the sample file named AutoUpdatePlugin.fp7
installed with FileMaker Server. This sample file is also available on the FileMaker, Inc. web site.
Overview
To set up plug-in version checking in your database, you need to write a few simple script steps that run
when a client opens your database. The first directs FileMaker Pro to a start-up layout, which contains
global fields that store version information about your database’s plug-in requirements. This script calls
a script named Run Plug-in Scripts, which calls sub-scripts that check for the required plug-in on both
the client and server computers, collects version numbers of plug-ins that exist in these locations,
compares them, and downloads an updated plug-in from the server, if needed.
File or folder Group Permissions
Plug-in parent folder fmsadmin Read and execute by group
Subfolder containing plug-in fmsadmin Read and execute by group
Plug-in file fmsadmin Read by group (read and execute OK)