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

Cross-platform compatibility of plugin made with ScriptMaster Advanced


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

Recommended Posts

Posted

I used ScriptMaster Advanced (4.132) to make a plugin for both Mac and Windows. When I write a calculation calling one of that plugin's functions on Mac, Windows machines do not recognize it and show only "<Function Missing>" in it's place. When I use a copy on Windows to replace "<Function Missing>" with the correct function name, it works fine on Windows, but that calculation will then show "<Function Missing>" on Mac. Has anyone else run into this? Is there a fix for it?

Posted

Jeremy

Not had any problems doing this creating plugins for both Mac and Windows on my Mac, admittedly using earlier versions. Silly question time, when you created the plugin you did create both, and were asked to find the plugin for the platform you were not on at the time?

Tim

Posted

I used ScriptMaster Advanced (4.132) to make a plugin for both Mac and Windows. When I write a calculation calling one of that plugin's functions on Mac, Windows machines do not recognize it and show only "<Function Missing>" in it's place. When I use a copy on Windows to replace "<Function Missing>" with the correct function name, it works fine on Windows, but that calculation will then show "<Function Missing>" on Mac. Has anyone else run into this? Is there a fix for it?

I think there might be some issues with generating plugins. Jesse had sent me a copy of pre-release 4.133, which had some clipboard fixes and I've been testing with my Theme Studio. I've tried multiple variations. I am constantly getting an error upon trying to generate. Jeremy, it sounds like you've been able to generate a cross platform plugin at least. I'm getting this.


SEVERE: PluginFunction PluginFunction{name='SMCreatePlugin', functionID=-2359, minArgs=null, maxArgs=7} got an error with converted args [ThemeStudio, TSFN, TS, Theme Studio Plug-in, 2.0, /Volumes/ZipZoom/Users/matt/Desktop/PluginScripts.fmp12, true]

java.io.IOException: Could not create Mac plugin directory: /Volumes/ZipZoom/Users/matt/Desktop/PluginScripts.fmp12/ThemeStudio/MAC/ThemeStudio.fmplugin

at com.prosc.beanshell.BeanShellModel.generatePlugin(BeanShellModel.java:307)

at com.prosc.beanshell.BeanShellPlugin.SMCreatePlugin(BeanShellPlugin.java:911)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.prosc.fmkit.StaticFunction.invoke(StaticFunction.java:231)

at com.prosc.fmkit.Plugin.invokeFunction(Plugin.java:333)

at com.prosc.fmkit.RegisterablePlugin.invokeFunction(RegisterablePlugin.java:77)

at com.prosc.fmkit.Plugin.invokeFunctionNoErrors(Plugin.java:314)

at com.prosc.fmkit.PluginBridge$3.run(PluginBridge.java:1056)

at com.prosc.fmkit.PluginBridge$5.run(PluginBridge.java:1152)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682)

at java.awt.EventQueue.access$000(EventQueue.java:85)

at java.awt.EventQueue$1.run(EventQueue.java:643)

at java.awt.EventQueue$1.run(EventQueue.java:641)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:652)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

I've got a call into Jesse and I'll see if I can generate a plugin with 4.132

Posted

I'll see if I can generate a plugin with 4.132

Just an update. I'm getting the same java.io.IOException error when trying to generate with 4.132. :(

Hopefully, the almighty Jesse (God of Java) is working on a fix for us. :)

Posted

Just an update. I'm getting the same java.io.IOException error when trying to generate with 4.132. :(

Hopefully, the almighty Jesse (God of Java) is working on a fix for us. :)

Alright! Developer DUH! Moment. I got a reply from Brent at 360Works. He mentioned it seemed like a permissions issue.

Of course, I forgot to walk through the GOLDEN RULES OF DEBUGGING! This is for those of you doing stuff outside of FileMaker.

Rule #1 Did you check the log (find it if you don't know where it is)

Rule #2 Is it a permissions issue?

Rule #3 Go back to Rule #1 and start over!

My problem was with a custom function I had which was auto-defining the path.

The lesson learned here is for any conversion from .fp7 format to .fmp12 format you need to make sure any instances of .fp7 are converted. I had a function which was Substituting a Get ( FileName ) & ".fp7" off the path.

Of course, if .fp7 is not found on a .fmp12 file THEN you may be trying to write to a path where you don't have permissions - such as inside a FileMaker file.

DUH!!!!!

P.S. Migration tip when moving from .fp7 to .fmp12. Use the Dracoventions Developer Assistant to find all instances of ".fp7".

  • Like 2

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