July 17, 200916 yr I am trying out the various functions provided by ScriptMaster 3 using the method of copying the scripts into variables of the start-up script of the test file. This works fine with ListAllFilesInDirectory and GetFileModificationDate, also after restarting the test file on its own (i.e. without ScriptMaster). However this does not apply to the SendEmail function. As soon as I restart FileMaker, the latter function disappears. When debugging the start-up script, the variable for this function shows to return "error" instead of "1" as for the other functions. The SendEmail capability returns as soon as I open the ScriptMaster file again. Can someone help me and tell me what I am doing wrong? Many thanks.
July 17, 200916 yr After you receive the "error" response, call SMLastError to get a detailed description of the problem. I suspect you need to include the javamail.jar The ScriptMaster FileMaker file does this for you, but if you copy the script into your own startup solution, you're also responsible for loading the .jar using SMLoadJar.
July 19, 200916 yr Author Indeed I did not load any of the jar files in my test setup. Many thanks for the quick advice.
Create an account or sign in to comment