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

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

Recommended Posts

Posted

Hi

I have a FM Solution that I use daily to book jobs in, What I am trying to do is have a script that when selected creates a folder on a networked. Each Job has a unique Job Ticket No.

I have a Windows File Server that has about 100 customers folders.

Filemaker will have to create the folder in the right customers folder and name it's unique Job Ticket No.

Is this something that can be done?

Any help would be much appreciated.

Regards

Peter

Posted

Is this something that can be done?

Anthing can be done. The real question is if it is worth the effort.

To do this you need either a Plug-In (could not tell you which one, I avoid them.) or an external script (Applescript on macs or VBS, Wsh, or Bat on windows)

The only one I have much experiance with is VBS on windows. (the script would be run from the client not the server)

The Object to use in VBS scripts is:

Set oFileObj = CreateObject("Scripting.FileSystemObject")

if you do a web search on "Scripting.FileSystemObject" you should be able to find all the pieces to write the script for windows. The logic of the script is somthing like: If YourPath Exists, do nothing, else, create YourPath. Getting the YourPath value in a script can be done in multiple ways, Arguments, exported text file, or my favorite, create the script as a calculation within filemaker, export it, then run it.

None of these option are very hard (8-10 lines of code saved as a text file). If you need help on a vbs script, let me know (I could throw together a sample if you need). If you need an applescript, I can't help you (Been to many years since I've used it)

Allen

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