john__j

Shell Scripting - Using "osascript" cmd to open a database via a Server Schedule

Discussion created by john__j on Aug 15, 2014
Latest reply on Aug 19, 2014 by Mike Duncan

Looking for help with respect to the proper syntax using an osascript command in a shell script to successfully open a local (unhosted) server database.

 

The following osascript string is unsuccessful in opening a database when run in a shell script as scheduled by FMS:

osascript -e 'tell application "FileMaker Pro"' -e 'open "/Library/FileMaker Server/Data/Databases/databasename.fmp12"' -e 'end tell'

Outcomes