Lucky Posted August 18, 2007 Posted August 18, 2007 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
aholtzapfel Posted August 18, 2007 Posted August 18, 2007 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
Lucky Posted August 20, 2007 Author Posted August 20, 2007 Hi Thanks for the reply. Yes I would need to do this from a Macintosh ( Applescript ) Regards Peter
rellis32 Posted August 22, 2007 Posted August 22, 2007 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now