StooJ Posted August 29, 2007 Posted August 29, 2007 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.
Vaughan Posted August 29, 2007 Posted August 29, 2007 "status (ScriptStatus)" I don't remember this in FMP 6. Why not use the ScriptNames( filename ) function?
aholtzapfel Posted August 29, 2007 Posted August 29, 2007 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.
Recommended Posts
This topic is 6338 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now