August 29, 200718 yr Is there any way of checking to see whether a script exists or not using a vbasic script (or similar)? At the moment I'm thinking of running the script and immediately checking the status (ScriptStatus) for a return value of 2, but I feel there ought to be a better way of doing this. Is there? I'm using FM6 for this at the moment, but I don't think the automation has changed much since then, has it? Many thanks.
August 29, 200718 yr "status (ScriptStatus)" I don't remember this in FMP 6. Why not use the ScriptNames( filename ) function?
August 29, 200718 yr Could capture errors in your script. just call the filemaker script and if it is not there it should generate an error. I have rarely done this but is possible. In vbs the command is "ONERROR (something)" OnError Resume Next just ignores the error or I believe you can call a sub function to preform whatever actions you want.
Create an account or sign in to comment