I have a script that runs on the server schedule, but it is generating some errors, one of which is, when the file is opened by the server, the file has an onOpen script. In that onOpen script there are non-server compatible steps like Freeze Window, and Adjust Window.
I know that there is a way to wrap these steps inside a If (Get(ApplicationVersion)) step, but what is the correct syntax to do this?
Currently I'm using
If [ Get(ApplicattionVersion) is not equal to "*server*" ]
This doesn't seem to work.
On a side issue, how to test for this? I'm using FMA 14 on a client machine, but how to test scripts from the server's perspective?