Jump to content
David Silverthorn

Migrating to Plugin Generated by ScriptMaster

Recommended Posts

Hi all, I recently purchased the Advanced copy of Scriptmaster, after using free edition for several years now. One of the primary reasons for the purchase was to compile the scripts into a Plugin, which has some speed gains (and I'm hoping a few stability gains as well.) I compiled all our scripts into a plugin, however, and found that the functions from the plugin do not replace the functions created by Scriptmaster.

This may mean that I need to overwrite each call made to the original Scriptmaster function with the new one of the same name, but from the generated plugin. Is there any method to make this faster, however?

While not an ideal solution, I could use 2empowerFM's Digital Assistant to replace the function called, however this would likely require that I append a string to the function name to ensure that there is no confusion between the two. I'll do this if I must, but I was hoping to hear other suggestions. 

Share this post


Link to post
Share on other sites

I did successfully use Digital Assistant to replace the ScriptMaster modules with ones from the generated plugin. if anyone is interested in how I approached the transition, I did the following:

  1. I  copied the script steps registering the functions and appended a unique string at the beginning of each function name within the copied set.
    1. Do not modify the original set of functions. This should create a duplicate set of functions with altered function names.
  2. I registered both my original functions and the copied functions.
  3. Using the Digital Assistant, I replaced the original functions called throughout all scripts with the copied function
  4. I used SMReset to clear out the registered functions
  5. I register copied functions
    1. Do not register the original functions
  6. Using the Digital Assistant, I removed the appended string from the functions called throughout all scripts
    1. This works because I cleared the original functions registered by ScriptMaster, which left the functions with the same name from the plugin. Filemaker appropriately associated the functions with the plugin, rather than ScriptMaster.

It was a bit of a process, but a whole lot easier and faster than manually updating every reference through the Script Workplace.

Share this post


Link to post
Share on other sites

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

  • Who Viewed the Topic

    1 member has viewed this topic:
    scrumpto 
×

Important Information

By using this site, you agree to our Terms of Use.