Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Does anyone know if there is a way to add a command line parameter when executing filemaker... or a filemaker db.

e.g. I have a db named "process.fp7" I want to have scheduler run process.fp7 and pass it a parameter of "X12345" sometimes and "X99999" others. Is this possible?

In other db's, I just added it to the command line.

Thanks,

Campbell

Posted

Probably the easiest way is, instead of opening the FMP program directly, open a FMP file with a startup script that does what you want.

Posted

Ok... that is exactly my question. Can I pass the startup parameter to the startup script?

So... let's say I have an external program write out a text file named: file0009212.

Is there a way to queue the startup script to process file0009212... or whatever it may be?

Posted

There may well be a way with AppleScript or VBScript (or whatever the equivalent to AS is on WindOS).

I'd imagine the process would go something like: VBScript opens file with command-line parameter, sets paramateer into FMP field, runs script in FMP file that processes the value in the field.

Other people on the Forums are wizards with these scripting languages and should be able to help you.

Posted

Ok. That makes sense... setting a field externally.

I was hoping for a command line variable... but that should work.

Posted

If you are going to do it this way it would be simpler to put the Applescript or, via a free plug-in, a shell script executed in the start up script.

Perhaps easier is to place the required parameters in a text file and to import this into a field. This may be best done into a one record table so that the script will be on the record containing the imported value via a 'Show all records' script step. No, if the import succeeds the record will be showing. Zero records showing could be a test for successful import.

Posted

That is a great quick fix while I try to figure out the activex insert.

Thanks a lot.

Campbell

Posted

There is not a way to pass a parameter to filemaker using ActiveX (I've wanted that for years) It is fairly easy to create a text file to store the value and import it as suggested. Athough if there are only two parameters possible you might just write two scripts in filemaker (one for each par.) and execute the appropiate one with the VBS script. (Note: In ver 9 there is a bug with activeX, if you use the script folders feature to organize scripts, active X is likely to call the wrong one, so if you are using activeX and ver9 DON'T use the script folder feature)

This topic is 6187 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.