Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Applescript to backup database at regular interval

Featured Replies

So I discovered that if you use FM7 to host a database (not server just FM7) you can perform a save as copy... script even when there are users connected. (This is different than previous versions, which made you disconnect users, unless you have server)

Since live unattended backups are the only feature of server that I really need, FM7 may allow me to have this feature without buying FM7 server.

With this small applescript

tell application "FileMaker Developer"

go to window "database"

do script "backup"

end tell

I can call this script from a shell script and place the shell script in my crontab file, subsequently using another script to gzip the backup file and rename it using the date and time in the filename.

The question I have relates to the applescript:

It seems I have to bring a window from the desired database to the front with the go to window command to use the do script command.

I tried to use a syntax like :)

do script "backup" of database "database" but that is incorrect. How do you reference a script name in a particular database without referencing a window?

Thanks,

Dana

FileMaker Version: Dev 7

Platform: Mac OS X Panther

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.