Perform Script on Server empty Get( SystemDrive ) and others

Discussion created by JEDtech on May 25, 2017
Latest reply on May 15, 2018 by TSGal

Product and version FileMaker Server 16

OS and version Mac OS X 10.11.6

Hardware Mac Pro 2009


(thanks to Vincenzo Menanno for identifying the problem)


When running a script on FileMaker Server via Perform Script on Server some Get() functions fail to return a value.  Known problems include:


Get( DesktopPath )

Get( FileMakerPath )

Get( SystemDrive )


There may be others.  See screen-shots below of same script run from FileMaker Pro Advanced 16.0.1 against FileMaker Server 15.0.3 and FileMaker Server 16.0.1


Screen Shot 2017-05-25 at 5.34.11 PM.png


Screen Shot 2017-05-25 at 5.37.32 PM.png


How to replicate

Run a script via Perform Script on Server [Wait for results] that returns the problematic Get() commands.


Workaround (if any)

It is possible to parse the working Get( DocumentsPath ) to derive DesktopPath, FileMakerPath, and to guess at SystemDrive.