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. For debugging purposes, I'm trying to do a tcpdump on OS X for a "Send Mail" script step, and I'd like this to run on the user computers, logging just for the relevant timeframe. The shell script I'm using is along the lines of: tcpdump -c 100 > $HOME/test.txt I was hoping to be able to use ScriptMaster to circumvent the sad limitation that FileMaker can only do one thing at a time. If I launch tcpdump with a shell script inside an AppleScript, the next script step (Send Mail) will only execute after tcpdump has terminated. If I use Run Shell Script ( command ; waitForOutput ; timeout ) with waitForOutput = true works fine, but obviously has the same limit…

  2. Started by nsw2206,

    Hi, I have added a jar file to my "jar libraries" but there's an associated .dll file that needs to go in the "java library path" where would that be for scriptmaster? thanks!

  3. Started by charleshoward,

    I have had great success on our Windows platforms using PrintToPort to send data directly to thermal label printers. The calculation that works is: PrintToPort ( $LabelFormat ; "192.168.20.152InterMec PX4i" ) Our Macs have never liked this address and return an error. I have recently tried to get this to work correctly and added a case function to detect the system platform then feed a unique address for Windows / Mac but I still can't seem to get the formatting correct for the port on the Macs. Can anyone help on the correct formatting for the address?

  4. Hi there I'm trying to figure out a way to use the Send Email (HTML-formatted) script and preserve the special characters in the message body. As far as I can see, the other ScriptMaster email scripts all include a parameter to set character set as UTF-8... but for some reason the HTML script doesn't. Is there a simple way around this? I do need the emails to be HTML. Curiously, emails sent via this method always have a header which includes "charset=Windows-1252". Not sure where that's set, but I'm guessing if I could find that out, I'd be half way home. Hope someone can help, but apologies in advance, if the solution involves more than a superficial und…

    • 0 replies
    • 1.6k views
  5. Hi I have a problem, saving some text from a text field into a file on a FMS13 server, using a generated plugin from ScriptMaster Pro. So the function I am using is the included in ScriptMaster sample file, except that I have added a parameter for setting desired encoding. It works perfectly on desktop, but fails when running as a server side script. The error returned on the server (SM error) is: failedjava.io.FileNotFoundException: Library/FileMaker Server/Data/Documents/TicketMasterTrans_05042014230946.csv (No such file or directory) I have also tried with using Temporary path, since that is actually more desired, but i am not sure, that it is availble o…

    • 3 replies
    • 1.6k views
  6. Started by Noél Dubau,

    Hello, I found a lot of discussions about sending emails (the sample file contains also some samples), but nothing about sending text messages to phone numbers. Is that possible or not ? In the first case can you give me links and ideas ? Thanks Noël

    • 4 replies
    • 2.1k views
  7. Started by john renfrew,

    If you have a spare 3 hours and want a really good heads up on the Groovy language there is a video session from last years Gr8Conf done by the fabulous mrhaki

    • 2 replies
    • 1.6k views
  8. Started by Noél Dubau,

    Hello, I just installed FMP13 Advanced on an iMac under Mountain lion. I installed in the extension folder the file named 360Works_ScriptMaster.fmplugin from the SMplugin 4_206 version. When i open a file created under FMP 12 Advanced using some SM scripts, I get a message "Scriptmaster plugin is not installed on this machine..." I uninstalled FMP and tried one more time without more success. Help please ! An thanks for advices Noël Â

  9. Here's a ScriptMaster module to color invert an image from a container field. The containerField input should be a text field with the name of the container field. You might need to increase your java memory size if you try to use this with a large image (http://docs.360works.com/index.php/Heapspace_Out_of_Memory_Error) //Invert Image (containerField) import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.awt.image.RescaleOp; InputStream input; try{ input = fmpro.getContainerStream(containerField); } catch(e){ throw new RuntimeException( e ); return false; } BufferedImage img = ImageIO.read(input); RescaleOp op = new RescaleOp(-1.0f, 255f, …

    • 2 replies
    • 3.5k views
  10. Started by StefanTK,

    Hi, I have scriptmaster running with Post Data to URL. But there is problems with authentication. My parameters is: URL: https://api.operatorspage.com/2/sms/ VALUE: "batch_label": "Test", "message": "Hello world!" KEY: Authorization Token zxczxczxczxc How can I POST data to URL without get back this error? java.io.IOExeption: Server returned HTTP response code: 401 for URL: https://api.operatorspage.com/2/sms/ My code: // Construct data String data = URLEncoder.encode(key, "UTF-8") + "=" + URLEncoder.encode(value, "UTF-8"); // use something like the following to send multiple key/value pairs // data += "&" + URLEncoder.encode(key2, "UTF-8")…

    • 0 replies
    • 2.1k views
  11. I just created both 32-bit and 64-bit versions of the same plug-in using ScriptMaster and was surprised to see that the registration string was different. Is there any reason for this? Just curious.

  12. Started by Awehl,

    I use for my Solution the latest Version 4.205, on Windows 7 with FM13 Advanced. I intensive use the executeSql function (Selects, Updates and Inserts), but with FM13 Advanced the SQL-Querys results with an error: "com.prosc.fmkit.FmCalculationException: 3". With Filemaker 12 Advanced the same Query runs faultless. What can be the problem?

  13. Started by bcooney,

    I have my email attachments in a child table to the parent email record, each in a container field and use a server-side script and 360s email plug-in to send the email (EmailAttachFile (myContainer) ). However, we want to save the files in the containers out to a NAS drive after Send. Server-side script does not support Export Field Contents, and so, I'm stuck. Is there a SM function that'll help overcome this obstacle? tia, Barbara

    • 18 replies
    • 5.3k views
  14. Hi all I wondered if you could help me with an issue I'm experiencing with the following script that uses the GetFileAsContainer function: Set Variable [$location; Value:Get(TemporaryPath) & "Learners.mer"] Export Records [No dialog: "$location"; Macintosh] Set Field [Globals::FileToSend; GetFileAsContainer( $location )] The file is exported to the temporary location just fine, but when I try to bring it back into the container in the third script step, I just get the word ERROR in the container. Can you help shed any light on the issue? Cheers Oli

  15. Hi all I'm working in a project where I need to save a certificate (.CER) and a key file (.KEY) y Base64 encoded text. For example, to convert a .KEY file I type this in OpenSSL: openssl pkcs8 -inform DER -in a.key -out b.key Now, how can I do the same using ScriptMaster?. Regards Ibrahim

  16. Started by Michael Frankel,

    Hi - On their website, it says that the current version of ScriptMaster is 4.206, however the link to download it does NOT download version 4.206, it downloads version 4.205. Could someone at 360Works please fix this? Thanks, -- Michael Frankel Wizard Consulting Group, Inc.

  17. Started by jsorge,

    I'm writing an email script, and it's working great with plain text, but won't work at all when trying to send HTML as part of a MimeBodyPart. Everything seems to be wired up properly and I'm new to Groovy. Any ideas? I've put my whole script up here: https://gist.github.com/jsorge/9242032. Right now it's returning in the middle where the error is happening, but obviously that's only there for debugging. Thanks for any help! jared

    • 0 replies
    • 944 views
  18. I have registered external function: trimWhitespace (text) if (text == null) return text; return text = text.trim(); If I put this function in indexed calculation field, question mark is displayed instead of text. Is it a bug?

  19. Started by RodM,

    It be nice... to know the zipFile() size stored in a container field?  I tried a number of combinations , in my code already nothing returning any thing close to the remote DL, and unzip.. then knowing the actual size of zipped file   1st, I Copy As, my filemaker fmp12 file to a folder.. There I know the original filesize Then I am zipFile, setting a Container field with the zip file.. viewing it on a layout,  [[[  I want to preview the file on layout here first, know how big it is... ]]]       I can do both email attach and Ftp the file.. Ftp is fast.. I am not certain. email is a winner yet!  Then NEXT, a button The container …

    • 1 reply
    • 1.3k views
  20. Started by stratlake,

    Hi All, Just wondering if anyone has created a ScriptMaster module using the iText library before? I'm needing to create a PDF Splitter and Merger in filemaker, so if you have any advice too, shoot!

    • 3 replies
    • 2.4k views
  21. Started by jrie818,

    Is it possible to use ScriptMaster's GUI Custom Dialog in IWP? I know that you have to install the plugin inside the Plugins folder in FileMaker Server. I also know that you have to register the plugin at startup. But I'm not sure if it's going work due to the fact that not all clients have Java installed and the jar library cannot be loaded on IWP clients. Assuming the client hava Java, will it work? Has anyone tried it?

    • 0 replies
    • 968 views
  22. Started by RodM,

    I am trying to copy to cloud.. a FMP12  I am using DROPBOX as a example, installing DropBox, It creates a simple folder off my Windows USER .. so there where I am copying to  I understand, then a remote user can grab this file... is much simpler than.. I first created email, to slow,  then a FTP option, works pretty nice but I needed to ZIP it too... Then my late bright idea, next wondering about the free 2 GB dropBox option ..has plenty of space for my file.. and could I purchase more... and I do not have to ZIP  But I always seem to have to manipulate code.. lack understanding the fine deals, getting it to work... Mostly due to my lack of proper t…

    • 3 replies
    • 1.9k views
  23. Started by Digitalbrit,

    I sent this email using ScriptMaster

  24. Started by eddyb2,

    Hi all I have the advanced version of ScriptMaster. I generated a plugin with some of the ScriptMaster File Management commands, Check Whether File Exists Copy File DeleteFileOrFolder Move or Rename File etc I added this plugin to a runtime solution, on startup, the runtime registers its own plugin. All fine. I have a script that goes to a folder in Program Files, creates a new folder within it, then moves a few files around. Tested it on my PC and a couple of others, all works fine. A few other people running the runtime have reported errors. I have narrowed it down to the fact that they are not Admins. If I try to do what the script i…

  25. Tell me  How to use Java7 in ScriptMater on Mac OS.  I�m using ScriptMaster 4.206 with FM Ad 12.0v5 on a Mac OS 10.10.9.1. and I have installed Java 1.7  I try run next code in GroovyConsole System.getProperty("java.version�) Result: 1.7.0_51  But in ScriptMaster return 1.6.0_65

  26. So here's code for sending or receiving a file through SCP (SSH secure copy) with ScriptMaster. Requires the Orion SSH-2 java library from http://sourceforge.net/apps/mediawiki/orion-ssh2/index.php . They can be easily adapted to use put/get methods that will get or put multiple files at once. Comments and suggestions always welcome. SCPGet ( hostname ; privateKey ; username ; localTargetDirectory ; remoteFile ) import java.io.IOException; import com.trilead.ssh2.Connection; import com.trilead.ssh2.SCPClient; try { // Convert private key to character array char[] privateKeyArray = privateKey.toCharArray(); // Create and open connection Connection theConnec…

  27. On a vanilla Windows Server 2012 I first installed the latest version of 32-bit and 64-bit Java 6, on the understanding that ScriptMaster required 32-bit Java to run. Â I then installed Filemaker Server 13 which installs Java 7, required to run the server. Â On placing the 360Works_ScriptMaster.fmx64 in the Filemaker Server's Extensions folder and restarting the Filemaker Server I was delighted to see the plugin listed, and I was able to enable the ScriptMaster plugin, see attached screenshot. Â All good so far BUT when I try to run a server-side script (either in web browser or with Filemaker client) which invokes a Groovy script using ScriptMaster, the cursor t…

  28. Hi Forum! We've been using GetUrlAsText with great success for several years, primarily to query the UPS and YRC freight services for rates. Oddly, I just tried pulling some priority mail data from USPS.com, and no luck - nothing gets returned. Even more oddly, I can't even get a text result from url "http://ircalc.usps.gov"... while in the same test script sites like "http://cnn.com" load content just fine. Here's my exact script line: GetURLasText( "http://ircalc.usps.com/") Any thoughts? Thanks in advance! -= Karl

  29. Started by bigtom,

    I built upon an example file from Matthew Greger using Scriptmaster plugin to put QR codes generated by Google into containers for each record. I am having trouble with the container randomly showing the barcore or showing an error that the plugin is missing. It is happening more often than not. They example file always works on the same machine with the same pluginfile. Not sure why my solution is having the issue. Any ideas would be helpful. This is running on FMA12. I have looked into it and cannot find a problem so far as I can see. Yes I got randomly spelled wrong. Oh Well.

    • 1 reply
    • 1.3k views
  30. Started by nanaowusunyamekye,

    Want to know how to use the ScriptMaster move or rename file module. I have a directory containing a sub directory and the files i want to move. i want to move the files into that subdirectory. Example: I have "Folder B" and "FM file A" in a parent direcory (Folder A). I want to move "FM file A" into "Folder B". How do i go about it. Thank you

  31. Hello all, I have a FMS 13 and want to execute the AES functions of the sample file (CreateAESSecretKey, EncryptAES, DecryptAES) via the new "Perform Script on Server". However when I execute the functions on the server (on the client everything works), I get a "java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES". I've installed Java 7 Update 45; java -version says 'java version "1.7.0_17"'. The standard functions of the plugin work server side without a problem (e.g. SM_Version or SM_LastError). What could be the problem? Thanks a lot

  32. This is a great function to create flipbooks of movies, but... Is there a way to include or add the very first frame of a movie ?

  33. Hello I have a folder on an ftpserver where clients upload their data (xml). After uploading it gets moved from the FTP to a (Mac) server in a folder on a share named 'MC Kranten'. Filemaker imports all the XML files that drop into that folder on a timed script. That works just fine. However, I would like FM to remove the said XML's after importing as they have no use anymore and would only slow down the import process when it's checking for duplicates all the time. I installed the 360works ScriptMaster, which worked like a charm on my local machine, but now that I have the scripts all running like they should and I'm confident that importing/deleting would go…

    • 3 replies
    • 1.3k views
  34. Started by Cabinetman,

    Maybe this is an easy question .....or maybe not. I have spent many hours writing my java code and creating different scripts to access certain APIs. I don't want just anyone who gets a copy of the plugin to be able to use it. Is there a way to lock the plugin ... maybe make it call my website for verification before loading the functions ?? I'm not a great Java person .... but if it's not possible to lock the whole thing maybe someone can advise me on the idea of incorporating such a call into each function before continuing with the rest of it ??

  35. For the past year, I have been using Filemaker Pro Advanced 12.x with ScriptMaster 4.132 (4/4/2012) with zero problems. They work well together and have been rock solid. And ScriptMaster 4.132 had no problems with the scripts I have been using when I upgraded to Filemaker Pro Advanced 12.0.5 My computer is a MacBook Pro 17" 2011 2.3 GHz Intel i7 with 16 GB RAM, 500 GB SSD, OS X 10.9.1 I did not realize there were several updates to ScriptMaster in the past year. So I installed the latest one: ScriptMaster 4.205 (7/24/2013). 1. When the 360Works_ScriptMaster.fmplugin 4.205 is installed, Filemaker takes 30+ seconds to start up and show its Open New or Exist…

    • 0 replies
    • 1.1k views
  36. Hello, I am running Scriptmaster in Filemaker Pro to call scripts by name and it works perfectly well. However, I also need to get this running in IWP, which according to the documentation should work as well. I have put the plugin into the correct folder (wpc/plugins) and the logs show that the function CallScriptImmediately is loaded. I have tried a simple one-step test script called “test” (Go to layout X) and I have used a button, which sets the following variable: $test CallScriptImmediately (Get (FileName); “test”; “ ”) As I said, in Filemaker Pro it goes to layout X, but in IWP it stays on the main layout. The version is Filemaker…

    • 0 replies
    • 915 views
  37. Started by jarbro,

    Is it possible to use the SendEmailWithAttachments () function to send an html e-mail with a single attachment? If it does I cannot seem to get it to work using the following. SendEmailWithAttachments( "[email protected]"; "[email protected]" ; "Contract for " & EVNT::FullLists__lct ;"loremipsumblahblahblah";"mailserver.domain.com" ; $$PDFshare )

  38. Started by Mr bean,

    When I try to active the plug-ins in filemaker I get a error message. "can't active this plugin" This plugin works fine with OS 10.5 en filemaker 9, but we have 2 users with os 10.4 We use the plugin for sending email in html I use OS 10.4 with the latest Java version (1.5) and filemaker 9. Scriptmaster version : 4.205 I am trying for 2 days with no solution,

  39. We are using the ScriptMaster 4 with Java 6.21. I have tried to upgrade the Java to the last version and from that moment I cant active the plugins anymore. When I try to active the plug-ins, my Filemaker crash. When I open the sample file, I get the info the plugins in not install, I click ok to install and my FM crash. What do I need to do? We working on FM12.0.4 on windows 7 / 2008 and 2003

  40. Started by Craig Stowell,

    Running build 205 I loaded Barcode4j.jar and added the code from the pinned topic. Everything seems to work until I go to create a plug-in. I follow the plug-in steps and it returns a message saying the plug-in was created but it doesn't actually create anything. Figured maybe I needed to restart FMP12... After doing that I get errors related to registering my barcode module because it can't access the jar. Using the reload script will get everything running again but I can't create the plug-in and will run into the same registering issue on a restart. Any advice?

  41. Started by Claus Lavendt,

    I am looking for a function to list the content of a zip file. Does anyone have anything to share ? (I want a list of files and folders within the zip file. Much like the List dir content recursively function)

    • 3 replies
    • 1.8k views
  42. Started by Donamd,

    Hello, I'm new on this forum and I like some more information about PostDatatoUrl. I like to use this function to check a VAT number on a site. It's not totally clear for me which the exact contents has to be for the parameters key, value, url For now I got something like this : PostDataToURL( ? ; Company::TVA_Number ;"http://ec.europa.eu/...VatService.wsdl?" ) The field TVA_Number from the table Company got something like this BE0123456789. Which is the parameter for 'key' and are the values for 'value' and 'url' correct ? Thanx for helping me. Donamd

    • 6 replies
    • 5.1k views
  43. Here's my code for using the FedEx v6 tracking web services. Not pretty, but it works. Any comments and improvements welcome! Fedex Track ( accountKey ; accountNumber ; accountPassword ; meterNumber ; trackingNumber ) // Send data targetURL = "https://ws.fedex.com:443/web-services/ship"; targetNamespace = "http://fedex.com/ws/track/v6"; URL url = new URL( targetURL ); HttpURLConnection conn = url.openConnection(); //if( soapaction != null ) conn.setRequestProperty( "SOAPAction", soapaction ); conn.setRequestProperty( "content-type", "text/xml" ); conn.setDoOutput(true); OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream()); soapRequest = "<SOAP-E…

    • 2 replies
    • 6.3k views
  44. Started by madhatt,

    So, I recently purchased the license for ScriptMaster and so far I really like it.... Except for one major issue. I am trying to find out why my SM plugin is trying to call home every 30 seconds 24/7! I have verified this with Wireshark. Every 30 seconds the plugin tries to reach https://secure2.360works.com or https://venus.360works.com I have reached out to 360works to try to find out what the heck is going on. Below are the questions they need to answer. What information is being sent in these "call home" messages? Does it send the exact same information with each transmission? Why does your plugin "call home" every 30 seconds? (verified via wire…

  45. Started by Ocean West,

    Currently have a process working where i export global field contents to the desktop but of course this file is encoded as: Unicode ( UTF-16 LittleEndian) with Classic Mac (CR) But the 3rd Party wants the file to be: WINDOWS ASCII WITH {CR}{LF} ROW DELIMITERS Can ScriptMaster Groovy fix the file format once it's written?

  46. Started by john renfrew,

    Just updated my ftp functions to add some functionality for a job. Some of the techniques might prove useful if you want to dig into them Uses the Commons-Net-3.2 jar but should also work with Commons-Net-Ftp-2.0 First also needs Commons-io jar List image files: // FTPlist ( ftp_host ; ftp_user ; ftp_password ; remote_path ) // 13_05_22 JR // v1.0 // returns date sorted list of tab separated file entries // date, time, size, name import org.apache.commons.net.ftp.FTPClient import org.apache.commons.net.ftp.FTPFile import org.apache.commons.io.FileUtils import java.text.SimpleDateFormat try{ new FTPClient().with{ connect ftp_host login ftp_user, ftp_passwor…

  47. Started by JamesBand,

    Requirements: ScriptMaster for FMP (AWESOME!) Download simpleftp.jar (and put it somewhere you can find it later, like the Groovy lib folder if you have Groovy installed ) Should be in a startup script: (should only be loaded once per FM session, dunno if loading more times will break it or not.) SMLoadJar ( "file://C:/Program Files/Groovy/lib/simpleftp.jar" ) Example code: (shamelessly ripped from the SimpleFTP website) EvaluateGroovy(" import org.jibble.simpleftp.*; def ftp = new SimpleFTP(); //modified this line // Connect to an FTP server on port 21. ftp.connect("ftp.somewhere.net", 21, "username", "password"); …

    • 12 replies
    • 14.3k views
  48. Started by andries,

    Hi I am trying to "upload" a file via the PHP API to my FileMaker database. With PHP I upload the file to the webserver. From there I would like to insert it into my FileMaker database (embedded). As Insert Picture is not a Web compatible script step I was thinking to use ScriptMaster and the GetFileAsContainer module. However I have the feeling this is not working... If I run the script from my local computer it all works fine, but when I trigger the script via PHP I only get a question mark back. This means that he does not know the function I guess. I have installed the plugin on my Server, and activated it. But then this question came up: can I use…

    • 3 replies
    • 2.8k views
  49. Started by ryandunnetbw,

    basicly i have filemaker so that it exports to csv what i then need is to add a line of normal text at the top of the document ive already used the append to file script and set it up up but it creates the line of text at the bottom of the document and i need it at the top because the csv is picked up by another program that prints postage labels automaticly and registers it with the delivery company and they require that a line be added to the csv that simply just says ADD WHS but without commas and on its own line. cheers in advance ryan

  50. Good afternoon, I implemented the module present in the demo file of Scriptmaster entitled "Send Email With Attachments". I do not meet problem - excepted a relative slowness via my ISP -smtp.free.fr and the mails are forwarded with their attachment. Yesterday finding me at a friend's home, I changed the smtp in question for that of his ISP (smtp.orange.fr ): and then nothing is transmitted (message and attachment) ! Some forums tell to fix the port to 587 but how in the smtphost field ? Thanks Noël

  51. Started by Noél Dubau,

    Hello, In a work I do under FMP12A I can create a certificate in a model, show it and print it ; I can't do twice or more that operation because the first time is created and printed a serial number. So, after printing, I save it in a pdf file. I don't find how I can open and print that pdf in another moment and looked in SM samples ; but I dont find anything ! Thanks to those who can help me ! Noël

    • 10 replies
    • 1.8k views
  52. Started by marioantonini,

    Working on Windows 7, FMP 12, I have FM and ScriptMaster both on disk C:, I have a filemaker file on disk D: When I give Read File Contents a path to a text (.txt) file on the Desktop ( C:) or any other path on disk C: it works fine, however, if I use a path on D:, even relative to the filemaker file (again on D:) I get the following error: java.io.FileNotFoundException: file:myFile.txt (The system cannot find the file specified). Also got the error with file:myFolder/myFile.txt (relative to the filemaker file) and with "file:/D:/myFolder/myFile.txt" Any help would be really appreciated!

  53. Started by Eden Morris,

    I am trying to use the replaceAll() function on some text. If I insert the code as an input variable the code doesn't work. But if I copy the code text right into the script it works just fine. How should I format this so that it works?

  54. Started by Larry Goldman,

    From: http://www.360works.com/scriptmaster/: From: http://static.360works.com/plugins/SCRIPTMASTERPLUGIN/documentation.html: What is the cost of an "Enterprise License" for ScriptMaster? How does one obtain such a license? Are demo versions of "enterprise" ScripMaster available for testing before purchase?

  55. Started by dansmith65,

    I just cobbled together some code from a few different sources in order to add namespace support to ScriptMaster's XPath Parse function. The cool thing about this function is it works the same as the old XPath Parse function if the namespaceList parameter is empty. After the community has reviewed/tested it, I think it's worth include in ScriptMaster as an updated version of XPath Parse. https://gist.github.com/dansmith65/6198674

  56. Started by dansmith65,

    What does ScriptMaster do with console messages? Like the one produced by this: System.out.print("Hello World") Is there any way to capture that output? I want to use some open source code that has many calls to System.out.print, so just not using that statement isn't an option in this scenario.

  57. I have two files. FileA and FileB. I have a script in FileA in which I'd like to query data in FileB. Here are my parameters: - FileA does not have a table occurrence for the table in FileB. - FileB is open with sufficient privileges - The process in FileA does have the correct TO and FIELDNAMES to query the data I believe I am having an issue with scope. Is there a way, without creating a TO in FileA, for the script in FileA to query the table in FileB using ExecuteSQL? Thanks, Jeff

      • Like
    • 4 replies
    • 1.3k views
  58. I am trying to use ScriptMaster on Filemaker Advanced 11 and the plugin won't load. If I go to preferences->plugins the plugin is not activated then if I activate it Filemaker instantly crashes. I am running on Windows 7 64-bit and I have javascript 7 update 25. I already tried a few basic troublshooting tricks like reinstalling a fresh version of the plugin, restart, taking out all other plugins, etc. I also tried it on Filemaker 12 and it works fine. Only I need to use the plugin on a file that needs to run on Filemaker 11. Thanks in advance.

  59. Started by andrea.bonaldo,

    hello, it's possible to implement openssl on a new function, and use it like ... scriptmaster_openssl_function (x509 ; -text ; -noout ; -in ; vendor.pem) with vendor.pem passed as a container and return a text like : ----------------------------------------------------------------------------------- Certificate: Data: Version: 3 (0x2) Serial Number: 1 (0x1) Signature Algorithm: sha256WithRSAEncryption Issuer: O=DC2.SMPTE.DOREMILABS.COM, OU=DC.DOREMILABS.COM, CN=.ROOT.DC2.SMPTE/dnQualifier=a/wUIHLuFW7RKXpNQGmQ966xOv8= Validity Not Before: Jan 1 00:00:00 2007 GMT Not After : Dec 31…

  60. Started by dansmith65,

    ScriptMaster 4.205 seems to handle line breaks incorrectly. If you send a ScriptMaster module a standard line break char(13), it is converted to char(10) before the ScriptMaster module get's it. For example, if you run the following ScriptMaster module with ¶ as a parameter, it will return 10. RegisterGroovy( "testparam( param )" ; "param.codePointAt(0)" ) The impact this has is the "Call Script Immediately" module is not sending the exact parameter to the script that I passed to the module. My script is doing a substitute based on ¶ in the script parameter, but since ¶ is converted into code(10) by ScriptMaster, the script doesn't work. My workaround is to use…

    • 0 replies
    • 1.1k views
  61. Hi guys, any idea why this function works perfectly on a FileMaker client but not on FileMaker Server (same computer). All my other ScriptMaster modules work as expected in my server scripts, except this one. RegisterGroovy( "SystemNanotime" ; "t = fmpro.evaluate(\"get(currenttime)\") ¶ return t[0..-4] + \",\" + System.nanoTime().toString()[10..-4] " ; "isGui=false" ) ) The client return something like 13:59,026579 (= 01:59.026 PM) run via the server this return "ERROR". It's not a problem of "," /"." (my server runs on a German system), already tried that. Best, Alexander

    • 2 replies
    • 1.6k views
  62. Started by maxwellk2,

    Is there any chance of getting a Lasso API along side the PHP API? It looks pretty simple but I can read PHP all that well. Thanks, Max

    • 2 replies
    • 1.5k views
  63. Started by dansmith65,

    The add button at the top/center of the Edit Script and ScriptMaster Modules layouts is performing the script Add new jar. I think it's supposed to perform Create New ScriptMaster script instead. On a similar note, the New Record button on the toolbar is currently disabled. If you edit the New Records menu to base it on an existing command, then select New Record, this button would be enabled.

    • 0 replies
    • 1.3k views
  64. Started by dansmith65,

    In ScriptMaster version 4.205, the first parameter to the Call Script Immediately function is tableName. I believe this should be fileName.

  65. Started by Petewhit,

    Registered 3 functions, generated plugin, OK. Next day I want to generate an updated plugin with an extra function. Deleted the existing plugin. Generate plugin, failed with error "360works scriptmaster error com.prosc.core.FeedbackException: Server error:Unknown error" No help in scripmaster! I tried restarting FM, no good, restarted computer, no good. Using FMA12, on a single computer, not shared. Windows 7. Thanks for any help. PeteWhit

    • 4 replies
    • 1.5k views
  66. Started by David Wikström,

    Does someone know a little bit more in details what this means? In my experience, a custom plugin generated with ScriptMaster Advanced seems to work even when you don't have an internet connection, so I don't quite understand what the behavior was before and is now...

  67. Started by hideout,

    I am trying to to create a simple rotate image script, so that after using my webcam to grab an image, I have the option to go vertical. What are the steps to create this script using the Rotate Image module? Thanks.

    • 13 replies
    • 6.5k views
  68. Started by NYPoke,

    I only see one post about problems with CR/LF in WriteToFile. It is rather old. On FM 12.4, Client & Server, and Windows Server 2008. I really need to use WriteToFile, to export a file for Text Messaging. Of course, I cannot get any new lines in the file, which makes it useless. Even tried Code (13) & Code (10), to get the CR/LF in. No luck. After all this time, do we still not have a solution for this? I cannot find any.

    • 2 replies
    • 1.4k views
  69. We generated a plug-in for use with our FMP11 databases to help users store hyperlinks in Filemaker to documents on our networked File server. This was generated using Scriptmaster 4.132 and has worked satisfactorily for over two years. We register the plug-in (called SelectFile) using the SelectFileRegister(key;company) function that is added to the plug-in by Scriptmaster when it is created. With that plug-in installed, it is possible to check the licence key registration by going to Preferences, selecting the Plug-ins tab, clicking on the plug-in and then clicking the Configure button. We've downloaded the new version of Scriptmaster (v4.203) and rebuilt the plug-…

    • 0 replies
    • 872 views
  70. Started by argwallace,

    Hello, Â Since I installed version 4.2 of ScriptMaster, I have had an error pop up that didn't show up on previous versions. The error reads: Â java.lang.NullPointerException: Cannot invoke method length() on null object. Â Any thoughts? Â Thanks! Stephen

    • 4 replies
    • 1.4k views
  71. Started by Kevin Mortimer,

    Hi I have a webservice that returns a cv document or the cv text as base64. I have tried to run it through the scriptmaster base64 decode function but it does not return any readable text. I have attached the result i get from the webservice. Does anyone know what the problem is? Many Thanks xmlResult.txt

  72. Started by john renfrew,

    Does anyone have any clever methods of telling if Windows is a 64 bit installation or 32 bit?? Now that we have both versions of the plug in it would be nice to install the right one. John

    • 4 replies
    • 1.5k views
  73. Currently I have a script that downloads images from a web location using the Troi URL plugin (The TURL_Get function). I want to replace the Troi function with a ScriptMaster function. Is there an existing one that will allow me to get raw data from a URL? Thanks!

    • 2 replies
    • 2.2k views
  74. I am trying to use SM's "Select File" dialog to get the path to a file that I will then Import. (using it to grab the name of the imported file) Issue seems to be that the file path formats are incompatible. E.g. Select File returns (Mac system): /Users/Me/Directory/Filename.txt But Import Records seems to expect fullpath format: filemac:/VOLUME/Users/Me/Directory/Filename.txt Anyone know how to grab the volume name from Select File (under the idea that the file may be on a remote volume), or can tell me where I can modify my logic (e.g. will file: relative path work?) Cheers, Juz

    • 0 replies
    • 1.4k views
  75. We've got ScriptMaster installed in Filemaker Pro 11 on a client's PC. When I attempt to send an HTML-formatted email using SendEmailWithAuthentication, I get a failure message that reports the details as javax.mail.AuthenticationFailedException. The SMTP server we're using is SecureServer.net, so there are clearly differences from the telco mail server I tested the script with off-site, and which sends the email fine. Since SecureServer is clearly different from my testing environment, do I need to do something special to send mail through it? What assumptions are made by the ScriptMaster function that might be violated by how SecureServer is set up? Do we need to us…

    • 0 replies
    • 1.5k views
  76. Started by john renfrew,

    Bit more code to share from a little exercise I was doing in Groovy-ness. Returns a list of prime numbers between start and end (max - 2147483647 ) or if no end value is supplied works out if start is prime by returning it, in both case returns false if there are no answers. It get slow with wide ranges or very high numbers but works right the way up the the top. // Primes ( start ; end ) // 13_06_01 JR // v1.0 // returns all primes between start and end // if no value for end just works out if the start is prime // works up to 2147483647 (largest integer) TAKES A LONG TIME UP THERE!! start = start.toInteger() end = !end ? start + 1 : end.toInteger() primes = (start…

    • 1 reply
    • 1.9k views
  77. Started by john renfrew,

    The documentation for SMSetErrorCapture() is not exactly verbose.... Does it just take true or false as the parameter???

  78. Started by Noél Dubau,

    Hello, I had a problem after updating to the last version of SM under Tiger 10.4.11. I use SM to get from Amazon datas about a book after entering the ean or isbn. It worked fine by the past and works well on my iMac under Montain Lion... I installed an old version of Tiger on a separate disk and booted from it. I installed my app : after entering isbn or ean nothing happened.... After downgrading the pi to 4_02 everything worked fine. Another problem is always present for me : the same app running on a machine with G3 processor can't acquire datas from Amazon through the same script in SM. Questions : Is ScriptMaster incompatible with G3 ? If not where can we…

    • 3 replies
    • 1.9k views
  79. About two years ago, we generated a (Windows) plug-in - SelectFile - using Scriptmaster Advanced 4.132 which included the Select File and Choose Folder() functions from the standard examples provided. This has worked entirely satisfactorily in our FMP 11 environment since then and allowed users to select and manage files on our networked servers with no issues. We've received notification of the newest release of Scripmaster 4.203. The release information says that this is an important update and we should upgrade for compatibility with Java 7 v25. This morning I've downloaded the new version and rebuilt the plug-in again. It seems to work correctly, but the licenceKey …

    • 0 replies
    • 1.2k views
  80. Started by john renfrew,

    If you need to update to support Java 7 then ALL older plugins need updating at the same time On an XP machine I left an old version there hidden in the alternative folder and FMP just kept crashing every time I tried to enable the plugin. John

  81. Started by ECShelp,

    I have a database that I am utilizing the ScriptMaster plugin. Our clients were recently updated to the latest version of Java (6.0.180) and ever since then FileMaker has not been able to open with the ScriptMaster plugin installed. The FileMaker splash window (the white box) opens and closes instantly. I'm assuming that the latest Java update has broken something within ScriptMaster that when FileMaker tried to load the plugin, it fails. I have experienced this so far on Windows 7 machines running FileMaker Pro Advanced 10 and Windows XP machines running FileMaker Pro 10. Has anyone else experienced this problem?

    • 20 replies
    • 5.8k views
  82. The error is: "java.lang.IllegalArgumentException. You cannot specify a package for scriptmaster modules.Remove the first line and try again. Any ideas?? Java 7 v 15, Windows 7 64bit OS, FM 11 v 3, FMS 11 v 5, SM v 4.201 When I comment the SetVariable script step registering the functions for SM the error no longer appears. I tried to get the 7 v25 java to work updated the plugin but could not maintain connection to server. I created a plugin earlier when I had SM 4 Advanced. Could that be the problem with Java 7 . 25? Thanks for the help, Tim

    • 3 replies
    • 1.2k views
  83. Started by jsorge,

    Hello, I'm trying to POST a file from a container using the PostDataToURL function. It looks like it just POSTs only strings. Is there a way to specify a type of data being posted? Thanks! jared

    • 0 replies
    • 991 views
  84. Started by Multigraphic,

    hello, sorry for my english. I do not understand this error message:  com.sun.mail.smtp.SMTPSendFailedException: 550 5.1.0 rqh41l01F0GUpSf01qh5vg authentication failed   Parameters: {[email protected], [email protected], subject=Prova invio mail html formated, htmlBody=I'm testing the <em>Sending Email <strong>HTML-Formatted</strong></em> utility for <a href="http://360works.com/scriptmaster">ScriptMaster</a>. Works great!, smtpHost=smtp.iproduct.it}  ---Script--- Script: import javax.mail.*; import javax.mail.internet.*;  Properties props = new Properties(); props.setProperty("mail.smtp.host", smtpH…

    • 2 replies
    • 2.2k views
  85. Started by john renfrew,

    Great job for this... Thank you New error messages are a lovely thing. First file I opened I found I was missing loading a jar file, so got some instant feedback. John

  86. Started by KalEl,

    Hello folks, I was trying to use "Get URL as Container" function on my FileMaker 12 Pro Advanced database in the IWP mode, and its not responding, so now, I am wondering, am I doing something wrong, or is that function simply not available in the IWP mode. I have read that it works in the IWP but from what I understood, its working in the FileMaker Server... Please help! Thanks, M.

    • 0 replies
    • 1.1k views
  87. Started by Joschk,

    I use ScriptMaster for unzip, for renaming files and for deleting files and folders. Everythink works fine on Mac and Windows. But when I make a runtime, application works only on OSX. ScriptMaster plugin is in correct folder (Runtimeapp/Extensions). Any ideas?

    • 2 replies
    • 1.3k views
  88. Hi. We've been playing around with ScriptMaster and think it's pretty nifty. However, we build a script that looks at a folder and then provides a list of the files within it. But, when we run the script on Mac, 2 things happen. 1. The path used by the function does not start in the drive where the FM file resides. It starts at the root of the hard disk. This makes us have to determine the path before we can list the files. 2. When we do list the files... the name isn't just listed, but also the path... so we get a list of names like this: /Macintosh HD/users/me/OurFile/invoice.csv /Macintosh HD/users/me/OurFile/invoicelines.csv On windows, it'…

    • 2 replies
    • 1.1k views
  89. Started by danhill,

    Filemaker 12 Pro client, 12 Server Client Win7Pro, Server Win7Pro Using Scriptmaster to post to URL. Get error code below. I don't expect complete troubleshooting, but maybe a couple steps in the right direction would be greatly appreciated. Data is being sent correctly to the plugin from FM12 database script, but not parsing/posting,,, following error code: Is the FileNotFoundException simply stating that the post to URL is no longer valid? ---------------------------------------------------------- java.io.FileNotFoundException: http://**POST ADDRESS HIDDEN FOR THIS FORUM** Parameters: {key=title, value=Legal & Liability Mgt: Tactical-SWAT-E…

  90. Started by Kevin Vile,

    We've created a plugin using ScriptMaster Advanced. One of the functions uses the call script feature to run a script in a different file. The function works fine on the FileMaker client. However, we are trying to run it as a server-side script and it doesn't appear to be working (the plugin is installed on the server and is working). Does this function work as a server-side function? Thanks.

    • 6 replies
    • 2.8k views
  91. Started by tomasd,

    I am using Scriptmaster SMLoadJar (from containter fields). Recently, I have found huge number of jar files in my temp folder: c:Documents and Settings<user>Local SettingsTempScriptMaster_<user> Scriptmaster creates jar files for each run of filemaker and never deletes them. Should I delete them manually or is it some error in using scriptmaster? I have newest version.

    • 0 replies
    • 1.2k views
  92. Hi, I'm trying to generate an SHA-256 Hmac hash of some text and a key using ScriptMaster. Basically I need to create a version of the PHP hash_hmac command. I've tried the following code and it generates a hash but it isn't correct. Here's the script: SHA_Hash (text;key) import javax.crypto.Mac; private static String toHex(byte[] hash){ StringBuffer buf = new StringBuffer(hash.length * 2); for (int i=0; i<hash.length; i++) { byte element = hash; int intVal = element & 0xff; if (intVal < 0x10){ // append a zero before a one digit hex // number to make it two digits. buf.append("0"); } buf.append(Integer.toHexString(intVal)); …

    • 7 replies
    • 2.7k views
  93. Started by john renfrew,

    Lovely 360works people.. Any plans to make ScriptMaster 64bit so it can be used on Server with CWP? Any plans to move to Groovy 2.0 and beyond? John

  94. Started by imran84,

    Hi All, I am having a database hosted on a FMserver and need to delete/rename a file which is present on the server itself. I am using delete function of scriptmaster but i am not able to delete it. It is returning me a value as '0'. It is not able to find the path of the file. Whenever i enter the path it is changing the file on my machine and not on the server (both have same path). How to fetch the correct path for a file on the server?

    • 7 replies
    • 1.7k views
  95. Hello Everybody.... it's first time for me to run scriptmaster plugin on a Mac, but I cannot use correctly. I was trying to use the plugin to delete a folder, but it does nothing. (the same database on a win 7 runs correctly) Any help Thanks a lot.

    • 3 replies
    • 2.3k views
  96. Started by Jeff Hough,

    Hello, I went to build a new custom plug-in this afternoon and received the dialog that my license had expired. I went to the 360Works site to renew. I didn't see a renewal option, so I purchased a new license. (It would have been nice to retain my original license number so I don't have to manage different keys.) My issue right now is I don't see where I update the license key to enable me to build a plug-in. Maybe it is right in front of my face, but I'm not seeing it. Any help would be appreciated. Thanks, Jeff Nevermind. I found it. I need to start drinking coffee in the afternoons.... Carry on... Nothing to see here... (For those of us coffee …

    • 0 replies
    • 1.1k views
  97. I'm using the script provided at http://cookingwithplugins.com/recipe.htm?id=125 and it always returns a 1 at the beginning. Any ideas to get rid of this stray 1? SMSetVariable ( "symbol" ; MyTable::stock_symbol ) & EvaluateGroovy ( "String url = "http://download.finance.yahoo.com/d/quotes.csv?s=" + symbol + "&f=l1"; return new URL(url).getText().trim();" )

  98. I am using FM 12 adv 03 on OSX and Windows  The problem I am having is with the SelectFile function.  When I am running the 'runtime' version of my Members application FM acts squirrely; ie, it shows (on the Mac) about 45 seconds of the 'spinning ball of death' before it finally continues. I think this is because I don't have SM plugin registered properly. Here is the code in my startup script that is supposed to register SelectFile:   I think SelectFile is not registering properly because I get the dialog box and the script pauses; as it should.  ... and here is the Groovey function code:   I am not a Groovey programmer and do not know i…

    • 1 reply
    • 1.3k views
  99. Started by brian rich,

    I've just downloaded Scriptmaster onto my new laptop, running Windows 8, from the 360Works website. When I launch the Scriptmaster.fp7 file in Filemaker 10 advanced, it complains that the plug-in is not installed and it wants to download it. If I let it do that, then it tells me it isn't installed. It shows on the plug-ins pane but is not configured; if I try and configure it, I get the message that Java 1.5 is not installed.on this computer. I've tried converting the Scriptmaster.fp7 to an FP12 file, but get the same message when I go to open it in FP12. Googling for the problem suggests that there is some issue with Metro and Java but I frankly have no idea w…

    • 2 replies
    • 1.3k views
  100. I was trying to use the ScriptMaster plugin on a Windows Terminal Server but somehow it is not working fully for all instances (users). It always works for Administrator user though. Can anyone help how should I configure this plugin on Terminal Server such that it works for all users without any issue?

    • 2 replies
    • 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.