Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have created an open-source project called ooScriptMaster, which stands for object oriented ScriptMaster. You can view the project here: https://github.com/dansmith65/ooScriptMaster This project is both a repository of functions for ScriptMaster AND a framework for writing functions for ScriptMaster.

If you know how to write groovy code; have a look at the groovydoc and the structure of the code, and try adding your own function to the project. If you would like to share your function, submit a pull request via GitHub.

If you don't know how to write groovy code; download the ScriptMaster.fp7 file and test out the functions it includes. If you notice any bugs, please post them on the issues page in GitHub.

The project currently includes many functions, including: file operations (create/delete/open file's/folders), zip files/directories/container field, schedule scripts via cron, SQL, Timer, and more.

  • Like 1
Posted

Dan that link doesn't work as it contains a full stop

Correct is

https://github.com/dansmith65/ooScriptMaster

john

Posted

Dan that link doesn't work as it contains a full stop

Correct is

https://github.com/dansmith65/ooScriptMaster

john

Thank's John, I edited the original post.

Posted

I added a list of functions to the GitHub wiki. This is the same documentation that is available in the download. https://github.com/dansmith65/ooScriptMaster/wiki/Functions

  • 3 months later...
Posted

hi Dan

I downloaded your files. They are great and it is just a great way to centralize your code!

I am trying to fully understand how you approach things, with the idea to append some nice features to it (I think that is the goal of the open source idea no?)

First of all, I don't understand the "run" function you use. How or when do you call it?

Secondly if I understand it well, you still need to register all the functions "manually". So you don't register them in FileMaker by using the SMLoadJAR function? Is there any way to obtain this? Because that would be a real timesaver, and a great way to redistribute a new version of your functions. I imagine in hosting this file on a fileserver, and onlaunch you can just call this file (if you are sure the user has internet access of course).

Thirdly: do you have a wishlist? Stuff you want to add to your project for which you don't have time? I am now working on a fully "UI" class, to have all kind of dialogboxes, progressbars etc. Besides that I am also working with the iText library to manipulate pdfs.

regards

Andries

Posted

Thanks for your interest, andries.

First off: have you downloaded the latest zip file? from here: https://github.com/d...aster/downloads

You can use the ScriptMaster.fp7 file in that download to register all the function included in ooScriptMaster.

I am trying to fully understand how you approach things, with the idea to append some nice features to it (I think that is the goal of the open source idea no?)

Yes, definetly! Please fork the code on GitHub and submit a Pull Request if you add any functions.

First of all, I don't understand the "run" function you use. How or when do you call it?

The only place you use the run method is when registering the function via the ScriptMaster plug-in. For example: to register the function: 'oosm_DirectoryDesktop', you would register this code:


ooscriptmaster.FileOperations.run( "directoryDesktop" )

The only purpose of using the run method is error reporting: if the method called does not exit with an error code, then the run method will catch the error and report it as Error -1: Unknown Error.

(Error reporting was a major design concideration when creating this project)

Secondly if I understand it well, you still need to register all the functions "manually". So you don't register them in FileMaker by using the SMLoadJAR function? Is there any way to obtain this? Because that would be a real timesaver, and a great way to redistribute a new version of your functions. I imagine in hosting this file on a fileserver, and onlaunch you can just call this file (if you are sure the user has internet access of course).

I don't think I understand what you are asking here. Personally, I use ScriptMaster Advanced to compile all functions of this project into my own custom plug-in.

If this part of your question has not been answered yet, please ask for clarification.

Thirdly: do you have a wishlist? Stuff you want to add to your project for which you don't have time? I am now working on a fully "UI" class, to have all kind of dialogboxes, progressbars etc. Besides that I am also working with the iText library to manipulate pdfs.

Yes, I do have a wishlist of functions, but nothing publicly published. One could probably be started in the Wiki on GitHub. If you are able to add one, I would appreciate it. Dialog's was one of the items on my wishlist; that would be great if you could add a class for that.

Regarding pdf's, I strongly recommend you get in touch with john renfrew http://fmforums.com/...5-john-renfrew/ He has already spent some time on that.

Posted

Thanks Dan

Just did a session at POE London outlining some of the real-world possibilities of PDF in production environments, and if the stars align, I can afford it, and there is one, I would consider doing that at a future POE in the US...

http://poexlondon2011.wikispaces.com

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