Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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.

Posted

"status (ScriptStatus)"

I don't remember this in FMP 6.

Why not use the ScriptNames( filename ) function?

Posted

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.

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 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.