Jump to content
Server Maintenance This Week. ×

Checking a script exists externally


StooJ

This topic is 6087 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 6087 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.