August 18, 200718 yr 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
August 18, 200718 yr 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
August 20, 200718 yr Author Hi Thanks for the reply. Yes I would need to do this from a Macintosh ( Applescript ) Regards Peter
August 22, 200718 yr There's an aritcle on fmwebschool that may be useful. It mentions applescript at the top. It has some examples for windows, I don't have a mac so I'm not sure how well it will relate: FMWebSchool
Create an account or sign in to comment