Jump to content
Server Maintenance This Week. ×

VBScript equivalent of AppleScript command


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

Recommended Posts

  • Newbies

Hi, I've been googling this for a while and can't seem to find the answer so I'm hoping someone here might be able to help.

Basically I am looking for pointers on how to reference FileMaker fields in VBS, of which I have no experience.

For example I have the following AS code which gives me an array from a portal row:

set Items to cellValue of cell "ItemIDNum::ItemName" of current record


How would I do this with VBS? I've tried variations of the following with no success:





Dim Items

Items = <>

TIA

Link to comment
Share on other sites

You can't.

Through a VBS script you can do the following.

Open a file(local only)

Connect to a file.

Test if a script is running.

Run a Script.(Script folders can screw this up)

and that is it.

If you want vbs to change a field in filemaker you need to create a text file to import into filemaker, connect to the FM file, and run an import script. (there are other solutions using the webviewer but all follow this same idea. There may be a plugin that could do it.)

Link to a sample file.

Link to comment
Share on other sites

  • 3 weeks later...

You might want to look at the open source fmdotnet project -- at least, it allows setting fields in VB .NET -- however, it requires FMS Advanced and Visual Studio. But, .NET sure beats scriptmaker!

http://fmdotnet.sourceforge.net/ -- this sounds like a very promising project, though I haven't tried it, and site didn't mention FM10.

Another option, would be to use ODBC in the VB or VBSCRIPT project.

Link to comment
Share on other sites

I still have to update the project for FMS10 but it should work without any issue as it is.

Remember that since 9 you don't need Server Advanced anymore to use the XML interface (which is what fmDotNet uses). fmDotNet now works against regular FMS9 and 10.

You are right about the advantages:

- it allows you to set fields directly

- it allows you to run a script on the server. *and* you can pass a parameter to the script

(downside: only web compatible script steps are supported)

Link to comment
Share on other sites

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