Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ScriptMaster by 360 Works

Discussions regarding ScriptMaster plugin allowing you to run Java code directly within FileMaker. Share, compare and discuss your code.

360Works ScriptMaster is a free, general-purpose, modular plugin. It comes out of the box with modules for file manipulation, URL and network utilities, Web Services, shell scripting, event/script triggering, and many others. ScriptMaster Product Page

  1. We are using SM (version 4.42) on a windows server and running a bunch of timed scripts to do various things. What is happing is that the server's HD is filling up with copies of the Jar files that are being used by the java code. For instance we are running a timed scripted every 15 minutes and a new instance of the Jar files is being created each time (and the old ones are NOT being deleted) at C:\Users\BCGCFMSvc\AppData\Local\Temp\ScriptMaster_bcgcfmsvc\Scriptmaster2975213099741919606commons-io-2.4.jar Any ideas why these are collecting and what to do?

  2. We are using SM (version 4.42) on a windows server and running a bunch of timed scripts to do various things. What is happing is that the server's HD is filling up with copies of the Jar files that are being used by the java code. For instance we are running a timed scripted every 15 minutes and a new instance of the Jar files is being created each time (and the old ones are NOT being deleted) at C:\Users\BCGCFMSvc\AppData\Local\Temp\ScriptMaster_bcgcfmsvc\Scriptmaster2975213099741919606commons-io-2.4.jar Any ideas why these are collecting and what to do?

  3. Started by Noél Dubau,

    Hello, I don't discover Scriptmaster plugin but I'm disappointed to day. FileMaker 12 ADV and Mavericks on an iMac 27 i5. I put the pi in the extensions folder ; I opened Scriptmaster.fmp12 file and went on The sendEmail with attachments and ran successfully. I asked to Register Function by copying to clipboard RegisterGroovy( "SendEmailWithAttachments( from ; to ; subject ; body ; smtpHost ; attachmentPath )" ; "import javax.mail.*;¶ import javax.mail.internet.*;¶ ¶ Properties props = new Properties();¶ props.setProperty(\"mail.smtp.host\", smtpHost);¶ ¶ MimeMessage msg = new MimeMessage(Session.getInstance(props));¶ Multipart content = new MimeMultipart()…

  4. Started by carlosnorvik,

    Hi: How do I use "Call Script Immediately", I have looked around but found no real answer and 360Works documentation is poor (too bad because the products are great). I need the script to run when a calculated balance reaches 0 or less (overpayment). Thanks Carlos

    • 2 replies
    • 2.3k views
  5. Started by john renfrew,

    The 4.3 version you put a link to break something rather important in the way this works try return fmpro.getContainerStream( fm_fileIn ) when the variable contains a container name. In previous versions you would get a streaming object, now you get a warning that it is trying to call FileMaker on another thread. (which is not allowed) FMPA 14 on Mac OSX10.11 see screenshot.

  6. Started by carlosnorvik,

    Hi: Sorry for so many consecutive posts, I am 100% new to ScriptMaster Advanced When I create plugins, do I have to install them on every desktop or can they be installed in the server (or both?). I run FM Server 11, FM Pro Advanced 11 on Win and FM Pro 11 on Win and Mac. Total users 8. Thanks Carlos

  7. Hi: I just bought a license for Scriptmaster Advanced, however the download links both in the mail and in the web confirmation were for the normal version. In the downloaded version I have looked in vain for a place to insert my license key in hope that doing it will convert it to advanced. I am also a user of Super Container, bit great products but the user interface lacks some friendliness, one really has to look around to get it working (works fine with Apache but never got it to work w/o it). Please help, I need to finish a project for which I need to generate plugins with Advanced. Thanks Carlos

  8. Started by carlosnorvik,

    HI; I created this module for currency conversion, variable "pair" = currencies in ISO format (example $ to Taiwan Dollar = "USDTWD" String url ="http://download.finance.yahoo.com/d/quotes.csv?s="+pair+"%3DX&f=l1n"; return new URL(url).getText().trim(); Returned result = 32.8200,"USD/TWD" Feel free to use it! Merry Christmas!

  9. Started by john renfrew,

    Been doing a bit of work so one of my staff can work from home and log time onto Freshbooks using iPhone app (MiniBooks Lite) but then I can query the account and pull down the data as XML and get it into FM Have a couple of functions that will generate the necessary XML to POST to Freshbooks and then one to actually do that All works but you will need the API docs to hand while you are building queries Create, Get, Update, Delete // FreshUpdate_SMB ( fb_type ; fb_request ; fb_id ; fields ; values ) // 2011/01/20 JR // v1 // returns XML to feed to FreshList_XML // fb_type is delete, get, create, update // fb_id is item ID // fields is list of fie…

  10. Hi, I'm having trouble making making the 32 bit plugin for windows. When I select to make a 32 bit version, it always makes a 64 bit. In my customized plugin from scriptmaster, I have all modules included except validate xml, terraserver web service, video thumbnail grid, play music, and error reporting example 1 & 2. Can anyone help me make the 32 bit plugin?

  11. I'm using the SM's SendEmailHTMLFormatted function to great effect, I'm enjoying just just having the single script step. However I can't work out how to have multiple recipients in the 'to' parameter. It says in the function description in SM: "Additional possibilities include sending to multiple recipients, SMTP authentication, multi-part emails, attachments, and much more." I've tried separate multiple email addresses with a semi colon and comma but no joy. Any help appreciated. Thanks

    • 10 replies
    • 1.7k views
  12. Hello everybody, this topic is to open a discussion about an unexpected behaviour inside my plugin when I try to start a function. First of all, I have to tell that I installed this plugin in production 9 month ago on FileMaker Server (OSX Yosemite on a Mac Server) and it worked as good as well by invoking and using daily the function that starting from this morning doesn't work more. Here below the chuck of log that I have found by watching the 360Plugins_ServerScripting64.log file: 10-nov-2015 13.02.23 com.prosc.fmkit.PluginBridge$4 run CONFIG: === Executing plugin function DBE_CreateBarCode on thread Thread-445 === 10-nov-2015 13.02.23 com.pro…

    • 2 replies
    • 2.5k views
  13. Started by sal88,

    Hi all I'm trying to implement the itext JAR in order to combine PDFs. I have the advanced edition of ScriptMaster. From what I've seen, the registergroovy function is one of the things that is required. However I can't find it in my custom generated SM plugin. It only ever appears when I load the ScriptMaster plugin generator. Does this mean that the 'ScriptMaster.fmp12' file will always have to be open? I thought I would be able to load the itext JAR in to the plugin generator, add my own PDF module that refers to it and then generate my plugin. But that doesn't seem to be how anyone has done it. What am I misunderstanding here? Thanks

  14. Started by JamesBand,

    Requirements: ScriptMaster for FMP (AWESOME!) Install Groovy and Reboot (yes you have to reboot, the ActiveXProxy won't work without it) (During setup ActiveXProxy is an option, make sure it installs with Groovy.) Recommended: Install Advanced Security for Outlook Should be in a startup script: (if this runs more than once, it stops working!) SMLoadJar ( "file://C:/Program Files/Groovy/lib/scriptom-1.2.jar" ) & SMLoadJar ( "file://C:/Program Files/Groovy/lib/jacob.jar" ) Setup the variables for the message: /* you can use multiple addresses seperated by ';' */ SMSetVariable ( "eTO" ; "[email protected]" ) & SMSetVari…

    • 27 replies
    • 16.7k views
  15. Started by Simplidata,

    I an trying to run a batch file using RunShellScript on Windows Server 2008 R2, FM13 - ScriptMaster 4.4.2. The code is as follows: RunShellScript( $Folder_Dossier_Path & "batch.bat"; "true" ; "30" ) The variable is simply the path to the batch file. If I double-click the batch file it works but within the script I get the following error message: java.lang.RuntimeException:Process was terminated. Other ScriptMaster functions are all working well and they use the same variable so I know it's OK. I'm a Mac guy so perhaps I'm missing something?

    • 13 replies
    • 2.8k views
  16. Started by sal88,

    Hi I have a variable that contains multiple lines, each with fields separated by commas. Can I call up this variable in the SQL INSERT function in order to create new records (based on the variable)? Thanks

    • 14 replies
    • 2.2k views
  17. Started by rustyShackleford,

    Hi, I was wondering how I could use the ABCRegister function to register my plugins? I understand the syntax, but the only way I can use ABCRegister is if I set it in a set variable script step. Is there any way to call this variable to register the plugins?

  18. Started by sal88,

    Hi I'm trying to use SM's ExecuteSQL function. Given that it has the same name as FM's built in sql function, how does it know which one it is using? Thanks

    • 5 replies
    • 1.1k views
  19. Hi everybody I have an error using scriptmaster 4.42 release when I try to convert a pdf file into text. I have no problem with 4.201 release. The function reurns ERROR and SMLastError is set as "java.lang.NoClassDefFoundError: org/bouncycastle/cms/Recipient" My function is defined as "import java.io.IOException" & ¶ & "import com.itextpdf.text.pdf.PdfReader" & ¶ & "import com.itextpdf.text.pdf.parser.PdfTextExtractor" & ¶ & ¶ & "if( fm_filePath == null ){ throw new Exception(\"File path required !\")}" & ¶ & "if (new File( fm_filePath ).exists()){" & ¶ & " try{" & ¶ & " reader = new PdfReader(fm_filePath)" &…

  20. Started by john renfrew,

    Scriptmaster 4.42 running as a a server plugin with FMS 14.02 If I load jar files locally the following code works, if I run it as a PSOS script - with the jars loaded into the JVM, it appears to not properly load the resources, so I get the error message underneath, which point to the the fact that A: the .lng is not loading so it can't find the error message and that the helvetica.afm is also not loading which causes the error import com.itextpdf.text.pdf.BaseFont try{ bf = BaseFont.createFont() return bf } catch (e) { return e } return true error is com.itextpdf.text.DocumentException: No message found for 1.not.found.as.resource see following as it appears t…

  21. Hi all, In light of FileMaker 14 (the 64-bit version in particular ), I have had to update some custom plugins that were created with ScriptMaster. However, the new plugins will not show up in FileMaker: First, I upgraded to ScriptMaster Pro 4.42 and used the new UI file. I transferred my functions' code and relevant .jars. I then registered and exported the plugin for Mac and 64-bit Windows. The Mac version worked right away, ruling out problems with my java code. The .fmx64 file however, would not show up in Filemaker at all. I tried installing from a container in a hosted solution, copying the file to the application directory, and copying it to the other plugin …

  22. Hi there, we have serious trouble getting the ScriptMaster plugin working on Filemaker Server 12 Advanced (Windows 2008 / R2 all FM updates installed). We are using the email plugin as an enterprise licence for years now without any problems (we are using it even with iwp, works like a charm) but Scriptmaster refuses to work on our server. Our database is using scriptmaster for copying and renaming files after the import in the database (Move Or Rename File). On FM 12 or Fm 12 Adv. (Client is OX and Windows 8) everything is working without any problems. We call the function via a seperate script wich calls the registration for the Scriptmaster functions (a startup scrip…

    • 8 replies
    • 1.8k views
  23. Started by Rafael Caballé,

    Hello, I need to consume 4 SAP Web Service from a FileMaker solution. The service uses a SOAP Protocol, so a .xml request to the web service needs to be generated and sent to the web service. The result will come back as another .xml over which some parsing will be required to extract the result of the request. I have learnt that this kind of situations was solved in the past with the FM Nexus Web Services Plug-in. The plug-in "read" the WSDL document, which in essence defines the web service functions, and created a bunch of external functions that could be used right from our FileMaker calculation dialog. These functions automatically generated the request .xml …

  24. Started by Bailey Kessing,

    We are trying to generate the chromatogram for an ABI DNA sequencing file. Biojava (http://biojava.org) has a jar that will do this and many other things for DNA sequence files. Not sure how technical I need to be but a chromatogram is basically an image of the DNA detecting on the sequencing machine. I need to generate that image. I have attached the Jar and a sequencing file ("t1.ab1" as an example) and the Java code we are trying to get to work (with not a lot of success). We think we are close, but have a couple of errors. Anyone care to take a look and see if a fresh set of eyes will help? THANKS!!! ####Code below##### import java.awt.image.BufferedImage; …

  25. Just done a bit of research for a system I am building into extracting the text from .eml files. so here a first version. Requires apache Commons-mail <code> // EMLextract ( fm_fileIn ) // 15_09_03 JRenfrew // v1.0 // requires commons-mail // from http://www.cnblogs.com/jiaoyiping/p/3761560.html import org.apache.commons.mail.util.MimeMessageParser import org.apache.commons.mail.util.MimeMessageUtils removeCarr = { it -> return it.replace('\r\n' , '\n').replace('\n\n', '\n') } //end removeCarr file = new File (fm_fileIn) mimeMessage = MimeMessageUtils.createMimeMessage(null, file) parser = new MimeMessageParser(mimeMessage) parsed = pa…

  26. Started by Koen,

    Hi, I have a little problem using the "ListAllFilesInDirectory( path )" command. It does not give an (visible) result. First I thought that it would be my lack of knowledge/installation. So I tried the "GetURLasText( url )" and followed the tutorial video step by step. All went fine and the "GetURLasText( url )" worked great. So now I tried the "ListAllFilesInDirectory( url )" again doing the exactly the same as I did with the URL script. So I created a calculated field and put as calculation "ListAllFilesInDirectory( Get(DesktopPath) )" script (resulting as text) but nothing shows up. I tried if "Get(DesktopPath)" would give an error, but that works fine. Am I doing s…

    • 3 replies
    • 3.2k views
  27. Started by john renfrew,

    just a bit of code I made to let you see the results of pinging a server.. <code> // GetLatency ( fm_ip ; fm_port ; verbose ) // 15_08_03 JohnRenfrew // v1.0 // fm_ip is IP address or web address // fm_port is port to ping - defaults to 80 // verbose - if empty returns just average, else anything returns results of 5 loops import java.net.Socket import java.net.InetAddress import java.net.SocketAddress import java.net.InetSocketAddress import java.net.SocketTimeoutException port = !fm_port ? 80i : fm_port.toInteger() times = 5 result = '' try { hostaddr = InetAddress.getByName(fm_ip).getHostAddress() } catch (UnknownHostException e) { …

  28. Started by 3rdparty,

    I am using RotateImage to display rotated images in a container field. The images themselves are in an archive on the local machine. The plugin and function work, but make browsing through the database painfully slow compared to browsing through unrotated images via a layout that has a container field calculated from the raw (unrotated) URL. Obviously the plugin is doing some work when presenting new records and therefore some performance degradation may be expected, but is there any way to minimize this slow down? Some details: - Images are in .jpg format and I cannot change this - I am not specifying any background in the RotateImage function - Software: Filemake…

    • 0 replies
    • 1.1k views
  29. I have a solution that I have been running for years that graphs from Google and inserts them into a container field using "GetURLasContainer". Recently it has been hanging on downloading the graphics. Permanently. Anyone else seeing this? We are running 13 server and clients. The stall happens on both a mac and pc clients. I have attached an example file. Once you open it you can click the "graph it" check box to have it execute the graphing and download into the container. Works most of the time...one at a time. But if you have it graph a bunch of records (by replace all in the "graph it" check box) it hangs after a few are graphed and the containers are set… Ideas? Gra…

    • 4 replies
    • 1.3k views
  30. Started by john renfrew,

    Is there any way that something can be added to the SMGetRegisteredModules to get us a version number too?? I have got an error reporting script which lets me know system variables when a big error occurs with one customer, but I have no way of seeing if the version of the loaded function is the most recent. john

  31. Started by Gary Hoffman,

    Hello, I have a vary similar problem to MBeck2. My created plug-in us being used in a Filemaker WebDirect solution, so I installed it in the right place on the Windows server and invoke the registration function every time a user opens the solution. However, the plug-in returns an error 3 of 4 times. That is, it works-sometimes. When it returns error, the getError function always says the plug-in is not registered. I take the advice to invoke the registration function twice in a row. Now the plug-in works only every other time. Other ideas-or fixes-are welcome. BTW, this plug-in seems to work consistently well in Filemaker Pro, just not in Web Publishing Engine. Gary

    • 2 replies
    • 1.3k views
  32. Started by Tim Hall,

    I just started using Filemaker 14 Advanced, and in the script editor (with the Scriptmaster 4 plugin already installed) I do not see any way to add any of the enabled modules to a script.

    • 3 replies
    • 1.5k views
  33. Started by Jim Marshall,

    Is there a good resource for file paths and script master? Normal file maker stuff doesn't work like using get(desktoppath) or whatever to operate on a file. For example if I refer to a file as file:///Users/Jim/Desktop/logo.png to use image rotation it works. If I use get(desktoppath)&filename it does not. Even though it successfully exports to that location using the same FileMaker script. I've googled and java relative path stuff is all over the map. I'm looking for a way to refer to the standard filemaker get functions using filemaker. So if I use the get to the desktop, or get to the temp folder to place a file, I need to know how to pick it up in script m…

  34. Started by john renfrew,

    I have a client I have taken over from someone who made a plugin - with only about 4 functions it has to be said - and it is being used on server 13 the main script is is used in is triggered once a minute during working hours (8-8) and then once an odour during the night, The start up script just does the plugin registration if is on the server and then moves to the functional script. they are finding that after about 5 days the script engine is no longer working, and I have ascertained that the plugin is not registering, and the only way to deal with this is to restart the script engine. Any observations as to what part SM is playing in this scenario? Is it just no…

    • 5 replies
    • 1.8k views
  35. Not too sure where to start here... I need FM to post data to a SOAp web service. From what i understand this is feasible with ScriptMaster plugin thanks to module Post XML Data. However, i'm struggling to get adequate documentation on what's next... I understand how to register the plugin, access the external function thanks to the custom plugin i have created. Post XML Data requires: url: that one is fairly easy to figure out xml: i can handle that one as well based on what i want to send to the target web service soapaction: now that one is beyond me... Is that the name of the operation ? Also i can't seem to find anywhere a way to include credentials in th…

    • 2 replies
    • 2.2k views
  36. Hello, I'm a ScriptMaster Advanced Edition user (I subscribed it during last January) and I have a problem with the registration of a plugin that I created for my environment. I describe my environment by hoping that you can support me to solve the problem that I have: 1. I'm using ScriptMaster on a Mac system (Yosemite) on which both FileMaker Advanced Pro 13.09 and FileMaker Server 13.09 are installed. 2. I developed and tested with ScriptMaster some functions that I included inside a plugin and I created it with the name myPlugin on my Mac. 3. I have put the produced plugin myPlugin.fmplugin in the 2 directory that I use in my FileMaker environment, I mean: …

    • 4 replies
    • 1.9k views
  37. Started by john renfrew,

    The groovy website has just had a makeover, making some of the learning resources easier to get at, and read. A snippet from there today... All these packages and classes are imported by default, i.e. you do not have to use an explicit import statement to use them: java.io.* java.lang.* java.math.BigDecimal java.math.BigInteger java.net.* java.util.* groovy.lang.* groovy.util.*

  38. I have installed scriptmaster plugin on a FileMaker Server 13, on a MacMini. All ok. I did some tests and it seems all ok BUT: When i try "perform onserver" to send an email with authentication, it return "1" ( then ok), but the mail has never received. Any idea Thanks.

    • 2 replies
    • 1.7k views
  39. Started by Hans_007,

    Hi to all Pro´s here! We have developed a solution to use ScriptMaster to execute Java Code. This will work well on the Windows side but on Mac OS X it (ScriptMaster) says that Java 1.6 is installed. That is bad, we need Java 1.7 or 1.8. In the Terminal it says 1.8 (or list it as 1.8), but in ScriptMaster it says Version 1.6 is used (so we can´t use Java on Mac). Now I´ve seen (sun website) that Apple does not support 1.7, but is there a way to activate 1.8 (or at least 1.7) ? I´ve added 3 Screenshots to clear out what i mean. Sorry for my formulation, i´m the carrier of the information :-) I´m not the Java Coder. I hope there is a solution, otherwise al…

    • 5 replies
    • 2.6k views
  40. Started by Telepski,

    Sending eMails (with or without attachments) ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ Unfortunately I'm not very familiar with Java and possibly am missing only two additional lines. Basically every SMTP server today requires authentification for good reason - all of us receive far enough of SPAM. Well, how do I add login name and password to the 360works ScriptMaster SMTP examples? For any answer thanks a lot in advance! Sincerely, Therese

    • 7 replies
    • 3.5k views
  41. Started by antoine fourage,

    Hi everybody.. I have an Issue with the UNZIPFile function of 360works scriptmaster v4.32 the file is correctly uncompressed... but the zip file remains busy until i close filemaker the matter is that i want to delete this file after opération... but it's impossible! do you have the same with your versions? many thanks for your help Antoine

  42. Started by john renfrew,

    for shortest distance between two points along great circle someone may already have done this... or you can write a custom function to do the same thing.. Let ( [ R = 6372.8 ; dLat = Radians ( laty - latx ) ; dLon = Radians ( lony - lonx ) ; lati = Radians ( latx ) ; latj = Radians ( laty ) ; a = Sin ( dLat / 2 ) * Sin ( dLat / 2 ) + Sin ( dLon / 2 ) * Sin ( dLon / 2 ) * Cos ( lati ) * Cos ( latj ) ; c = 2 * Asin ( Sqrt ( a ) ) ; M = R * c * .621371192 ] ; Case ( IsEmpty ( units ) ; Int ( M ) & " mi " & Round ( ( M - Int ( M ) ) * 1760 ; 2 ) & " yds" ; Round ( R * c ; 3 ) & " km" ) ) // HaversineDistance ( latx ; lonx ; laty ; lony ; units ) // 15_…

    • 3 replies
    • 2k views
  43. Hi Folks, I'm wondering if anyone out there is having stability issues when running server side scripts which use ScriptMaster on FileMaker 13 Server. Everything seems to run well for a while, but after running for a while, scripts running on FileMaker Server Side start failing. It appears that every time a script using ScriptMaster runs server side, the appopriate JAR files are loaded, but when the script is done those file handles are never released. Eventually, the number of open file handles gets to the maximum allowed for a user/process and the fmsased process can no longer open any files. This means that ScriptMaster can no longer load (even FileMaker functi…

  44. Started by MBeck65,

    Hello everybody, I'm a novice of ScriptMaster: I used it for month in free version and I have subscribed the Advanced version some days ago. I have a very simple question that I'm not able to answer: is it possible to create a new function by scratch? Thanks a lot Max

    • 3 replies
    • 1.3k views
  45. Started by john renfrew,

    lovely 360Works people.. next time there is an update, can you add Groovy 2.4 please... there's some lovely stuff with templates going on, as well as a better JSON parser since 2.3 Oh, and can you then make the next update quite soon. Is there any news on when we can expect to be supporting Java 7 too??? john

  46. Hi all A customer asked me if I can create a solution to use a biometric reader (i.e. fingerprint reader) that runs on Mac. I've seen some solutions like the plugin from Productive Computing but they are Windows-Only solutions. On the other hand, I've seen some readers that come with a SDK but I'm not sure which one is the easiest to use with ScriptMaster. So, my question is if some of you have made an integration with a biometric reader, which do you recommend and if – just by chance – you have a sample file. Best regards Ibrahim

  47. Started by David Wikström,

    Just wondering if anyone has given Excel (xlsx) creation via Apache POI or some other library a serious go? Since there are a lot elements of an Excel we don't control properly, or at all, in FileMaker's native Excel export, this would seem to be useful (if nothing else, it might push FileMaker Inc. to improve the native Excel export...

  48. Started by Bailey Kessing,

    Does anyone have a way to export a container field using Scriptmaster?

  49. Is it possible to have ScriptMaster execute a shell script sever-side using the “Perform Script on Server” and the module "RunShellScript( command ; waitForOutput ; timeout )” that is in ScriptMaster’s example file?

  50. Started by jpranaym,

    Hello, I have a generated plugin, created in ScriptMaster 4.2, that I am registering using the key generated with the plugin. The registration seems to be working fine in the start-up script and the function show up under external functions. BUT: After 2 hours of using FileMaker, the plugin ceases to run, as if in a demo-mode. The functions are still available but will not work. I have double checked that ScriptMaster Advanced is/was properly registered at the time of plugin creation. This problem is occurring with the Mac version of the plugin. Windows plugins have not been tested. This is urgent. Please advise. Thank you!

  51. I have a ScriptMaster Module created and installed that only uses CallScriptImmediately. c_SetOrderSubStatusStaticField = Case ( Order Sub Status = "backorder" ; CallScriptImmediately( Get (FileName ) ; "SetNonCalcSubStatusBO" ; "BO" ) ; Order Sub Status = "willcall" ; CallScriptImmediately( Get (FileName ) ; "SetNonCalcSubStatusBO" ; "wc" ) ; IsEmpty ( Order Sub Status ) ; CallScriptImmediately( Get (FileName ) ; "SetNonCalcSubStatusBO" ; "" ) ) Order Sub Status is a calc based on a relationship and is not indexable. The Script that is being called, "SetNonCalcSubStatusBO", is a plain TEXT field. The CallScriptImmediately calculation (above) ONLY works whe…

  52. Started by truelifeajf,

    I don't know why but the following URL: http://www.eatyourveggies.com.au/sendgrid/sendgrid.php ?api_user=<user> &api_key=<key> &html= &text=test &subject=test &from=<email address> &fromname=Dim &to=<email address> &toname=Adam works fine when I use: - paste it into the web browser - use insert from URL script step but not when I use GetURLasText() Error I get is: java.io.IOException: Server returned HTTP response code: 403 for URL.... etc

  53. Has anyone had success using the zxing library to read/decode bar codes with ScriptMaster ? I generate them just fine using the Barcode4J library. I think I am having dependency issues (take a pill...) and not much forward momentum getting it to work. Examples, suggestions or commiseration are greatly accepted. regards... Bob Minteer

  54. Started by john renfrew,

    Thanks for this, as you know I am big fan.. Can you confirm that there is now no dependency on 32-bit Java, especially on Mac?? john

  55. Started by john renfrew,

    in the documentation it says >>Use "..." after the parameter name, and that will be set as a List of Strings. so if the variable is named thisVar... If you return thisVar.class you get Java.util.ArrayList which means you can't run any of the methods on it meant for Strings, but you also can't run any methods for an array either, like thisVar[2] or thisVar.size() If thisVar is aa bb cc If you then do thisVar + 'n' + 'newvalue' the answer returned is i.e. with 2 added carriage returns not one aa bb cc newvalue The main reason for wanting this to work properly is that .tokenize('n') as you know removes blank values, so I currently …

    • 2 replies
    • 1.2k views
  56. We have a SM process that combines PDFs into one. Most of these PDFs are ones created via some print or save as PDF process from a word processor or the like.... but SOME of them are scans of printed pages. When our processor encounters these pages it often (always?) errors and causes a failure. Has anyone else encountered this and, more importantly, does anyone have any suggestions on how to get SM to process these scanned PDFs properly. More info on or process is available if it might help to diagnose the problem... Thanks, mark

  57. Hello all, For my FM solution, I use several 360 Works Modules: • CreateFolder • AES (all three of them) • UUID Registration is done by declaring variables in startup script. Untill some point in development everything worked fine. Now, Scriptmaster 360 throws up Java.io.O Exception errors: Stream closed. ScriptMaster modules keep working though. I found that inserting the first scriptstep of the ScriptMaster demo file startup script into my startup script results in the errors not showing up anymore. This sets a variable with value SMSetErrorCapture( True ) My question: is it safe to ignore these Java exceptions or do I need to dig deep into the matte…

    • 0 replies
    • 1.5k views
  58. Started by nsw2206,

    java.lang.StringindexOutOfBoundsException: String index out of range -1 Â 32 bit plugin was generated ok. what do I need to look at? Â Â Â

  59. Started by john renfrew,

    For those following the 'using QR codes to pass Safari address & parameters into FM GO' to launch it discussions, I have done a quick script to create the QR code and return the image to a container using the itextpdf library..(needs 5.02.jar) Only have a 'Touch' not a 'Phone' so if anyone want to test this works it would be brilliant... //QRimg(fm_content) //2010_09_25 JR //v1 //takes path and text from fm_content and returns image to container //requires itextpdf.jar 5.02 from itextpdf.com import java.awt.image.* import com.itextpdf.text.* import com.itextpdf.text.pdf.* qr = new BarcodeQRCode(fm_content, 1, 1, null) img = qr.createAwtIma…

    • 9 replies
    • 6.2k views
  60. Started by deddi1999,

    hi, I'm an absolutely beginner with plugins like 360work ( groovy / java )! I need help! I want to do this: in FM13 create a new window, have a top ( head )with some fields and a body with a table. Now, by click ( f.e. the left button of the mouse ) I will get the X- and Y- coordinates of the mouse then calculate with them and built a new window ! ( it's like a popover - a little bit ) Is there a way to get the coordinates when clicking the mouse button on a FM-window ? I need the X/Y -position in a script ? can someone help? Detmar

    • 2 replies
    • 1.4k views
  61. Hi All: I've generated my custom plugins many times successfully, but am running into trouble generating a 64-bit version. In order to do so, I downloaded the latest SM file and imported all of my custom function data (meaning the modules, inout and output variables and jar file entries). I go through the plugin creation process, specify the output file, and am then told I'll be prompted to find the location of the 64-bit Windows plugin. But that prompt never happens, and the script returns instantly. No plugin is created. Stepping through in the debugger, I can see that the ultimate call to SMCreatePlugin looks correct -- but the call returns instantly wi…

    • 1 reply
    • 1.2k views
  62. Started by weston1492,

    Hello everyone,    I have signed up for this forum because I have encountered a problem that is most puzzling to me.  I'm developing a solution in FMP 11 that needs to have the ability to rotate an image within a container field. I am aware that in Filemaker, this cannot happen without the use of some sort of external plugin. So I consulted the old interweb and found the Script Master plugin. I understand how registering each function works so I donâ��t believe thatâ��s the problem.  Iâ��m pretty sure my problem is my path that Iâ��m using. I would like to keep it a temporary path that way my users donâ��t have to go back and delete the file after itâ��…

    • 2 replies
    • 2.6k views
  63. We have a script that downloads PDFs from our corporate web site and saves them to our internal server. (Long story; suffice to say it’s a good thing.) We use ScriptMaster’s GetURLasContainer to copy the PDF to a container field, then use FileMaker 11’s own Export Field Contents to save the file to an appropriate path. Unfortunately, we’re having an issue where the PDFs being downloaded to the container are corrupt. When we try to open them, we get the following error message: The file [insert file name] could not be opened. It may be damaged or use a file format that Preview doesn’t recognize. —or— Acrobat could not open [insert file name] because it is eith…

    • 2 replies
    • 1.9k views
  64. I've built a new plugin made by ScriptMaster Advanced 4 and trying to use it on FileMaker Server 13. It works well in 2 hours, but seems to expire after that. Registration script works well on client-side(FileMaker Pro), but does not work on FileMaker Server. What should I do to use the plugin on FileMaker Server? Thank you in advanced.

  65. Hi there,  I'm starting to get an error:  java.io.FileNotFoundException: http://demo.360works.com/esdl/fedex_live.wsdl  It seems like web service file is no longer hosted on 360works site.  anyone experiencing the same problem?  Thanks.  Â

    • 3 replies
    • 2.1k views
  66. Hi everyone, I'm trying to parse 13 big XML files. The file sizes range from 5 to 55 MB, and I have to accomplish the parsing in a one hour window. All the XML files represent more than 150MB of data. I've tried using plugins to get the XPath working, but they all came to the same problem: everytime I call the XPath query function with both parameters (the xml itself and the XPath string), the plugin ends up releasing the XML in memory. I had extreme performance issues because every time I wanted to execute an XPath query I had to reload the whole XML in the heap. So I got on with ScriptMaster and NetBeans. I used NetBeans to create a library with one simple c…

  67. Started by dysong3,

    Hi, I've only just discovered Scriptmaster. I am trying to use it on 2 computers both running OX S 10.9.4. On one everything runs perfectly. On the other, the registered modules won't load into FM client once Scriptmaster has been opened. When I go to "external functions" in the calculation engine the only modules available are the following. However they are not the ones I selected in Scriptmaster. EvaluateGroovy( groovyScript ) RegisterGroovy( signature ; script ) SMGetVariable( variableName ) SMLastError SMLastStackTrace SMLoadJar( externalJar ) SMReset SMSetVariable( variableName ; value ) SMVersion I got the impression the problem may be linked to not havin…

    • 2 replies
    • 1.3k views
  68. Hello ( excuse my english, I'm French ) I use scriptmaster file to develop functions. However, I observe that sometimes a function works fine in the file and not when I record with RegisterGroovy, and the reverse is also true. for example this function works properly when it is saved with RegisterGroovy, not in the file. how to develop functions properly in this uncertain environment ? what is this error ? the code example : import java.util.zip.ZipOutputStream import java.util.zip.ZipEntry import java.nio.channels.FileChannel String zipFileName = Zip_path String inputDir = Dir_path Try { ZipOutputStream zipFile = new …

    • 6 replies
    • 2.8k views
  69. We've trying to migrate from FileMaker Server 12 hosted on a Windows 2008 Server to a Windows Server 2012 R2 running FileMaker Server 13, and we're experiencing strange behavior when we call the RegisterGroovy() function on a server side script (on schedule). We've been doing this for about 2 years on the 2008 server without a problem. Here's what happens: A scheduled script runs fine up till the point when we set a variable to RegisterGroovy() When it gets to that point it hangs for about 2 minutes and then the FMS log is written to with the following: Client "Module Push Or Delete (FileMaker Script)" no longer responding; connection closed. (51) Then the scrip…

  70. Started by Ibrahim Bittar,

    Hi all Do you know if there is a sample code to make XML Signatures?. I found this in the Oracle website: http://docs.oracle.com/javase/7/docs/technotes/guides/security/xmldsig/XMLDigitalSignature.html#wp511406 Do you know if there is a Groovy equivalent?. Best Regards Ibrahim.

  71. I've been using a script using a custom generated Scriptmaster plugin that lists all of the files in a folder in the Documents folder of Filemaker Server on a Windows Server then stepped through them and imported the files into specific tables. I created this on a test document running on the server then ported it over to a nearly identical document running on the same server. The test document has been running for almost 2 months without a hiccup. The authorization steps, the creation of folders etc. is working. But now the ListAllFilesInDirectory refuses to list files, not just in the ported over script but also on the old document as well. If I manually paste…

    • 10 replies
    • 2.1k views
  72. Started by DPaquin,

    I wrote a very simple script attempting to use ScriptMaster within a FileMaker Server environment. I do have a plug-in called "myFIleSystems((V1_1)" which have been enabled with FMS. When running the script in FileMaker Server the returned answer is an "?". Attached are two documents showing : 1 - the FileMaker Server environment the FileMaker Server Admin Console showing the plugin is enabled; the folder where the ScriptMaster plugin has been copied over; the content of the SD card the plugin is to read 2 - the FileMaker custom script. I've tried the script on a FileMaker Pro environment and everything works fine. I also ensured all the script command …

  73. Right now I can't get the plugins to load in the server, so I'm assuming FMS 13 isn't supported at the moment since it's new, but I want to check here just to be sure and that I'm not doing something wrong. I've tried running install plugin scripts on the server (after checking the appropriate options in the console) and placing the plugins in the server's extension directory and restarting the server. The Admin console still shows no available plugins listed. I've done this with both the standard and 64 bit versions of the windows plugin. Using windows Server 2008 R2 SP1 Standard.

  74. Started by DPaquin,

    Hello I am new to ScriptMaster and to groovy. I would like to modified the copy file command

    • 2 replies
    • 1.1k views
  75. I just installed the 64 bit plugin version 4.206 on FileMaker Server 13 on Windows and it does not show the version in Get ( InstalledFMPlugins ).

    • 0 replies
    • 1.1k views
  76. Hello, I made a set of classes in Java, version 1.8. When I try to register a function the following message appears: "You cannot register this function, because it will not compile: java.lang.UnsupportedClassVersionError: br/com/himaker/cte/webservice/WebService : Unsupported major.minor version 52.0" Note: this error occurs only on Mac OS X. On Windows works fine. ScriptMaster version: 4.206 Logs in attached. Tanks Josimar 360Plugins_FMAdvanced.log.zip

    • 0 replies
    • 1.9k views
  77. Started by Bailey Kessing,

    Anyone have any experience or interest in http://biojava.org/wiki/Main_Page

  78. Hi all I'm writing this script: ​import wslite.soap.SOAPClient import groovy.xml.StreamingMarkupBuilder import groovy.xml.XmlUtil client = new SOAPClient(Server + '?wsdl') list = client.send(SOAPAction:Server + '.TimbradoHttpSoap11Endpoint/HTTP/1.1') { body{ buscar('xmlns':'http://utilerias.timbrado.ws.cfdi.solucionfactible.com') { usuario(Usuario) password(Password) parametros{ cancelada(cancelada) emisorNombre(emisorNombre) emisorRFC(emisorRFC) fechaEmisionFin(fechaEmisionFin) …

  79. Started by Marco VR,

    Hi, I've built a couple of modules in Java for use in Scriptmaster and that works fine. Now I want to do some logging from my Java code to the default 360Works logfiles which are located in the user homedirectory in the folder 360Works. Is there an easy way to do that? I'm now doing this: private static final Logger log = Logger.getLogger(MyPlugin.class.getName()); And to add a message to the log: log.fine("Username: " + username); But that doesn't do what I want. Please help :-) regards, Marco

  80. Started by Razumovsky,

    There are several previous posts that ask about this, but I have not been able to find a clear answer in them. I am encountering the java heap space OutofMemoryError and would like to see if increasing the heap space will get around the issue (I think the real issue is a java bug in scaling a bufferedimage http://bugs.sun.com/...?bug_id=6716560 ). This is a served solution hosted on FMS11 on a windows 2003 server with scriptmaster-4_02 and used by people on xp, osx, and vista. My questions are: 1. Does the heap need to be increased on the host or client machines? 2. Has the location changed since the wiki was written? http://wo.360works.c...of_Memory_Error 3.…

    • 3 replies
    • 2.5k views
  81. Started by Labo4,

    Hello there, I am having trouble with some advanced function scriptmaster function that interests me is GetClipboardData (49159) to get the file path. but it always returns me "". Against by the GetClipboardData function (49158) gives me "serve Debra Desktop ~ BL2014 1.DOC" Why Filename works but not FilenameW?

    • 1 reply
    • 1.1k views
  82. Started by PeteM,

    I am trying to Scriptmaster to copy files from a mounted S3 bucket to a directory where where FM server can import them from. I can do it from the command line in the OS but when I run the same command via scriptmaster I come up empty. I have tried to use some of the built in commands in SM to get file size and directory listings to the same result. Any other experience out there?

    • 0 replies
    • 1.2k views
  83. Hi, I have a Payflow Pro account and in reading the documentation for Plastics 2 by 360Works, It says if you can login to your Payflow Pro account, the plug in will be fine. Only it says .User Authentication Failed' I've been trying to contact PayPal, but there's no help there. Please can someone help or at least point me in the right direction to get this resolved. Thanks a lot Kind Regards Stef

    • 0 replies
    • 897 views
  84. I'm using the java project "selenium" with "ghostdriver" and phantomjs as my browser to create screenshots of web pages. My code works perfectly in groovyConsole but has an error with the phantomjs driver once inside Scriptmaster. I think the problem may be that it requires access to a binary phantomjs that is not part of the jars. This is the code that executes in groovyConsole and produces a screenshot: import java.io.File import java.util.concurrent.TimeUnit import org.apache.commons.io.FileUtils import org.openqa.selenium.OutputType import org.openqa.selenium.TakesScreenshot import org.openqa.selenium.WebDriver import org.openqa.selenium.phantomjs.PhantomJS…

    • 3 replies
    • 10.4k views
  85. Started by fseipel,

    Attached is a simple SM example which generates a Code39 and POSTNET barcode using Barcode4J Link . Result is returned as a Container. This has been tested on Windows and should run on Macs; barcode is saved as a JPEG to temporary folder, then loaded back into a container. It may be possible to instead load it directly into a container, but I wasn't sure how to achieve that. Code39 is trivial since it can be achieved with free fonts, but this may be of interest for POSTNET and other symbologies supported by BARCODE4J. Be sure to check the JAR on the Code39 example, I forgot to do that before uploading... SM_Barcodes_3.zip

    • 11 replies
    • 10.7k views
  86. Started by greerso,

    I'm interested in learning how to create a ScriptMaster module from scratch and have read the documentation at http://360works.com/plugins/SCRIPTMASTERPLUGIN/documentation.html and ran through the tutorial at http://groovy.codehaus.org/Beginners+Tutorial. 360Works.com told me what I already know about the usefulness of ScriptMaster and how to use existing modules, codehaus.org gave me a (very)basic understanding of groovy code. I'm looking for pointers on how to write a simple ScriptMaster module from scratch, any do's and dont's and tips on taking sample java code and editing it to make a groovy ScriptMaster module. I learned by trial and error, for example, that a…

    • 7 replies
    • 3.1k views
  87. The function will delete a file, but the result is not placed into a variable like it should. I can work around this by following with a CheckWhetherFileExists function, but I'm curious what might be going on. This is the case on Mac and Windows.

  88. I'm have a custom plugin that I have developed for my solution and I'm in the process of extending it and doing a few more things inside of the plugin as opposed to inside of FMP as I had been doing before. However, I need to be able to access several variables which my function generates and I'd like to know if there's essentially a way to bind the SMGetVariable function into my custom plugin as opposed to also including the ScriptMaster plugin with my solution?

    • 1 reply
    • 1.3k views
  89. Hi! (How) is it possible, to rename a file within a container field? Currently, we are exporting the file to a calculated path and desired filename and import it again with a script. But there must be a better way. Is this possible with the ScriptMaster plug-in? (or any other plug-in)? Thank you, Bernhard

    • 9 replies
    • 6.5k views
  90. Started by Bailey Kessing,

    I am currently using PHP to generate datamatrix barcodes and would like to use Scriptmaster and Java. Problem: I never learned Java. I have found Java code on the web, but lack the Java skills to get it working. Anyone have a working solution? Want to try?

  91. Started by andries,

    For what it is worth, here is a code to create barcodes with ScriptMaster. It uses the barbecue library which can be downloaded here: http://barbecue.sourceforge.net/ Add the library to your jar list and there you go! import java.io.File; import net.sourceforge.barbecue.Barcode; import net.sourceforge.barbecue.BarcodeFactory; import net.sourceforge.barbecue.BarcodeImageHandler; Barcode barcode = BarcodeFactory.createInt2of5(dataString); //Uncomment those lines to save the barcode as a png //File f = new File(destPath); //BarcodeImageHandler.savePNG(barcode, f); //Uncomment the following line to return the barcode as an image to FileMaker…

    • 8 replies
    • 8k views
  92. I have Scriptmaster Advanced 4.206 I want to read text files as-is into a text field without any processing done to them. The Read File Contents functions is converting CRLF into CR. I need to read the exact contents of the file as-is without any filtering. The files I am reading may contain various combinations of CR and LF and other control codes. This is output information from a device where the text may contain multiple LF without CR and other ASCII codes (basically any of the ASCII codes below 20h). The pattern of those codes are important for decoding what is going on inside a piece of equipment we are using which is a full custom hardware design. How can i…

    • 0 replies
    • 1.3k views
  93. Started by andries,

    Hi, here is a small demo file that show how to generate QR codes and even read them from a container field. http://www.bh-a.com/index.php?option=com_content&view=article&id=88&Itemid=84&lang=en (requires ScriptMaster )

      • Like
    • 9 replies
    • 7.5k views
  94. Started by Ocean West,

    I am trying to get iText working and from some reason my code is generating an error. // The following code is groovy code to be used with the ScriptMaster plugin // The code requires the iText jar library and will merge any number of PDF files // into one PDF file // @param files = return separated list of absolute paths to PDF files // @param output = absolute path for new pdf file (including file name) import java.io.FileOutputStream; import java.util.ArrayList; import java.util.List; import com.itextpdf.text.Document; import com.itextpdf.text.pdf.PdfReader; import com.itextpdf.text.pdf.PdfCopy; import com.itextpdf.text.pdf.PdfImportedPage; …

      • Like
    • 11 replies
    • 6.6k views
  95. I am running Filemaker 11 pro advanced and I am using the latest version of Scriptmaster. When I enter the path to the file I want to load into the container field (It is a PDF file) I get the following error: groovy.lang.MissingPropertyException: No such property: pathToFile for class: Script1 Parameters: {J:Invoices1265.pdf=null} ---Script--- Script: File f = new File( pathToFile ); fileExists = f.exists(); return f; I also tried using "/" in the path and still get the error. I also tried "filewin:/J:/Invoices/1265.pdf" and still get errors. Can anyone offer any suggestions as to how I might address this problem.

    • 6 replies
    • 2.9k views
  96. Hi, I have two macs: Mac Pro (with Developer Filemaker 12.0.5) running 10.9.3 and an iMac with regular Filemaker 12.0.5 running 10.9.3. I invoke the "choose folder" function of 360Works_ScriptMaster.fmplugin version 4.206 (installed on both Macs). Using "choose folder" I select a folder on a networked Mac Server. The sever is called "server" and the folder I choose is called "interestingFolderOnNetwork" which is on a shared volume called "interestingVolume" On my mac pro, I get this result: "/Volumes/interestingVolume/interestingFolderOnNetwork" On my iMac, I get: /Volumes/server/InterestingFolderOnNetwork" So on my iMac, the server name is used instead …

    • 1 reply
    • 1.1k views
  97. (Apologies if this is made clear somewhere else, I can not seem to find an answer here or anywhere) Thank you for looking at this and for any feedback. I am not sure if my issue is a bug or a feature... I have just created my first plugin. It requires 2 jar files which are not included with SM. It seems the function will not work unless I have the 2 jar files in a directory where java expects to find jar files (by default, or some other location which has been added to the path file). This is not an issue on my development machine, but my intention is to make this portable. So the question at hand is this: Does ScriptMaster, and/or plugins generated with SMA…

      • Like
    • 5 replies
    • 3.3k views
  98. Hi, I'm absolutely new to Java and Groovy and I'm trying to figure things out. I have a JAR file, which I loaded using SMLoadJar and it returned no errors. If I use SMGetLoadedJars I get this: commons-codec-1.4.jar commons-ssl.jar commons-io-2.4.jar ws-timbrado-client.jar Now, I want to use the classes in ws-timbrado-client.jar and I'd like to know: Which classes are contained in the JAR file. What parameters they use. How to register those classes as modules so I can create a plugin with them. Here is the link to download the JAR file: http://solucionfactible.com/sfic/resources/files/librerias/timbrado/ws-timbrado-client.zip Thanks in advance. …

  99. Hello everybody, on FileMaker clients I can increase the memorysize for ScriptMaster at /Library/Application Support/360FmKit (as described here: http://docs.360works.com/index.php/Heapspace_Out_of_Memory_Error). Where would I need to set it on FileMaker Server? Thanks, shak

  100. Hoping to not reinvent the wheel... we are looking to hook an existing FMP shipping solution in to FedEx - currently we enter data manually into a FedEx "terminal" with a scale attached. We would like to be able to generate a FedEx shipment and label and record tracking info etc directly from the FMP record. It might even be "good enough" to simply send the relevant fields to the FedEx terminal where weight etc could be added via the shipping department's usual methods. We don't need all of the bells and whistles of a consumer interface with pricing etc etc We can do this ourselves I imagine but I would be happy to pay to make this happen more quickly... Conta…

    • 0 replies
    • 1.2k views

Recently Browsing 0

  • No registered users viewing this page.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.