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
966 topics in this forum
-
Hello Since I installed the last free version of the plugin on my FileMaker 13 I have a lot of various alerts that I don't understand... The operation is finally done.. I'll come back later with screen copies but in the immediate time I'd like to download a previous version of tha plugin. Can you give me links to do that ? Thanks a lot and regards, Noël Now if that last version is in the extensions folder, when I launch FMP13Adv I have a panel preparing the pi and some seconds after FMP crashes ! On my PC I get a download At the end the pi are charged and the error no scriptmaster plugin !!!!! On Mac and PC If I put the …
-
- 4 replies
- 1.4k views
-
-
Howdy from Texas! I am trying to change a little bit of Groovy that stamps a given phrase at a specified location on an existing PDF. The original code operates on files however I want to simply specify container fields as input and output. I did successfully change the input (src) to come FROM a container field. I can't seem to figure out how to return the resulting object to a container (dest) directly. I am passing the container parameters as: "myTable::inputContainer" and "myTable::outputContainer". Can someone please point me in the right direction here? Thanks in advance! Bob Minteer This is the code: Regis…
-
- 4 replies
- 1.3k views
-
-
ScriptMaster 5.07 uses Java 9 now. ( @360works - would be nice to have that in the changelog ) if you are using the Microsoft JDBC drivers at all then they are not currently compatible with Java 9 the _dev driver mentioned in this link does work, although still not a final driver (as tested here - YMMV) https://github.com/Microsoft/mssql-jdbc/issues/549 Put it into the /lib folder in your contents/Home in the JDK folder for the plugin or create an /ext folder inside it.
-
- 6 replies
- 2.2k views
-
-
Does anyone know if Scritpmaster's ExecuteSQL is limited in WebDirect? I renamed the function to SQL on my end, to avoid confusion with Filemaker's native ExecuteSQL function. When attempting run a script using the SQL and it's INSERT INTO feature, Pro clients will be successful, but not Webdirect clients. I notice that WebDirect returns ERROR. I'm curious if this is limitation or quirk of some sort. We're running on Filemaker Server 16 and Scriptmaster 5.09.
-
- 2 replies
- 1.5k views
-
-
The Zip File function included with the ScriptMaster sample file only works for files, not folders. Does anyone happen to have working code that works for zip-compressing a folder (including subfolders)?
-
-
- 4 replies
- 1.1k views
-
-
I have been trying to follow the tutorial for iText 7 and and coming unstuck quite early on and not sure if it is a change in the way the jars are loaded or as a result of using standalone JVM... As you know I might just have a lot of expertise with v5 and have no problems, but I also can't use 7 with older scriptmaster as there is MajorVersion issue as it requires later than Java 6 Anyone care to be enlightening??
-
-
- 4 replies
- 1.8k views
-
-
Hello Sorry if the question has been asked in this forum but I don't find if it's possible (and how) to click on a word in a text field and get a link opened in the navigator. I join a minimal FMP 12 file to make may question more evident Thanks and regards Noël texteVersurl.fmp12
-
- 5 replies
- 1.2k views
-
-
I'm having an unusual error when a script attempts to register a plugin, generated with Scriptmaster 5.07, in WebDirect. When the attempt is made, the following error is returned: License key provided is for a different product (expected 24; found 48) The script runs without issue when using the Filemaker 16 client. The server is using Filemaker 16 as well. Any ideas as to a resolution for the issue here?
-
- 2 replies
- 1.3k views
-
-
This has long been an issue, I have no idea why it happens and it is making life quite difficult Win Server 2012 FMS 16 (current but this happens on other configurations) With ScriptMaster installed run a script which resets the server ( SMReset) and then loads jars and functions return to you the result of SMGetRegisteredModules and show it in a dialog box run another script on the server which just returns to you the result of SMGetRegisteredModules and show it in a dialog box dialog 1 SHOWS the modules you installed dialog 2 is EMPTY fmsadmin restart fmse do the above again, same result this means you can not …
-
- 1 reply
- 1.7k views
-
-
I'm having intermittent issues with FileMaker Pro 16.0.3 on several Windows 10 workstations that I think is due to ScriptMaster not starting up properly when FileMaker starts. When the startup hangs, no FileMaker windows show up and I have to kill the FileMaker process through Task Manager to try starting up the program again. Eventually the program will startup without any changes being made to the system. The log file 360Plugins_FMPro.log in c:\Users\<user>\360works shows this when the startup hangs and it never updates: (C++ Tue Jan 02 14:20:02 2018) INIT - Creating new log file (C++ Tue Jan 02 14:20:02 2018) *** INIT for 360Works ScriptMaster_FMPro …
-
- 1 reply
- 2k views
-
-
Running FM16 and 5.07. When I try to choose a folder it might work the first time, but the second time it locks up FM. Anyone else seeing this? Model Name: MacBook Pro Model Identifier: MacBookPro10,1 Processor Name: Intel Core i7 Processor Speed: 2.7 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 8 MB Memory: 16 GB Boot ROM Version: MBP101.00F2.B00 SMC Version (system): 2.3f36 Serial Number (system): C02JF0QPDKQ5 Hardware UUID: 0C57CE18-BDF7-5122-AAB4-1AB7EDA92C12
-
- 0 replies
- 864 views
-
-
WHen testing out High Sierra I am getting a Jav app in the dock every time I run FileMkaer with Scriptmaster. Closing doesn't seem to remove the app.. It crashed the other day a couple of times so I ended up with three icons there What is this, can can it not be so???
-
- 3 replies
- 3.8k views
-
-
I seem unable to load Script master in FMPA 16 (32 bit) on Windows 7 32 and on Windows 10 64. My solution must be 32 bit. Plugin was placed in the extensions folder. There are unknown script steps in it startup script. Any advice please ?
-
-
- 12 replies
- 4.3k views
-
-
I've read through the SM documentation, but appear to be missing how to create a new Java function in ScriptMaster. When I click the small "add" link in the ScriptMaster demo file (in the "ScriptMaster Modules" section), it wants to load a JAR or ZIP file. I was thinking instead "add" would open a code window and type in some Java. So, how do you get new Java code into ScriptMaster? In my custom FileMaker application, I would load external JAR classes using SMLoadJar from (in my case) SPSS that that Java code I have in the ScriptMaster demo file would work with. Trying to see how all this plays together. Thanks in advance for clarification. -…
-
- 2 replies
- 1.3k views
-
-
Is it possible to have ScriptMaster send commands to SPSS and receive data back from SPSS? For Java, IBM requires that the SPSS plugin JAR file must remain in the SPSS installation folder. With a regular Java application, this requirement/limitation works OK, but not for a web service (which is our goal). Wondering if anyone has gotten two-way communication with SPSS to work within a FMP application. Thanks in advance,
-
- 0 replies
- 1.2k views
-
-
I'm working on a function to extract text from a .txt.gz file in a container field: //SM_TextFromGZIP ( containerFieldName ) import java.util.zip.GZIPInputStream; import java.util.io.*; GZIPInputStream gunzip = new GZIPInputStream(fmpro.getContainerStream(containerFieldName)); InputStreamReader reader = new InputStreamReader(gunzip); BufferedReader pr = new BufferedReader(reader); String line; String finalOutput = \"\"; while ((line = pr.readLine()) != null) finalOutput += line; return finalOutput; When I run this, I get this from the SMLastStackTrace function: java.io.IOException: com.prosc.fmkit.types.FMBinary$FMContainerInputStream.read() returned value…
-
-
- 13 replies
- 3.3k views
-
-
Hello, We are looking into using ScriptMaster and specifically the encryption functions. Do the EncryptAES and DecryptAES functions support AES 256? Apologies if this is somewhere in the documentation, I did have look first! Thank you in advance for any advice you can give, Lewis
-
-
- 4 replies
- 2k views
-
-
I've got a custom plugin that was created with SM several years ago, when it still had a dependency to Java v6. I recently updated my portfolio licensing so that the end users don't have to have Java installed on their machines. Is there an <easy> way to recompile this custom plugin to take advantage of the new architecture, or will I have to recreate from scratch? The developer that created the custom plugin is no longer with us, and I was hoping to shortcut this process to avoid the learning curve.
-
- 3 replies
- 1.8k views
-
-
I'm know I'm way behind the curve but I'm finally at least moving up to FMPA v13. I'm having major issues getting my same java to work. Since this is the Scriptmaster section let me address my java issue that worked fine in v10 .......... I've copied the java code from Scriptmaster under v10 I pasted it into Scriptmaster under v13 I added the jars Run script I now get a .... java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.mws.MarketplaceWebServiceClient I'm at a loss .... Works fine in v10. Anybody able to offer any ideas ?
-
- 9 replies
- 2.6k views
-
-
I have problem with the latest version of Scriptmaster 360 (5.05) on FileMaker 16, Mac OS X 10.12.6. I can install it (through FileMaker instal plugin sciptstep) and no errors occur. But in the settings of FileMaker, in the Plugin-slide the Scriptmaster 360 is unboxed. If I click on it and try to activate the plugin a error occur, se attached picture. The language is in Swedish but ruffly translated it means: "? could not be initiated". I have tried to delete the plugin and reinstall but the same error occur. Dose anyone have a ide of what to do?
-
- 1 reply
- 2.4k views
-
-
As you can't use the Export Field Contents step when running a script through FileMaker Server, I threw together the following ScriptMaster script. Any suggestions or improvements welcome. Write Container to File ( filePath ; containerField ) import org.apache.commons.io.*; InputStream input; FileOutputStream out; try{ input = fmpro.getContainerStream(containerField); } catch(e){ return false; } if ( input == null ) { return false; } try{ output= new FileOutputStream( filePath ); } catch(e){ return false; } IOUtils.copy (input, output ); //int read = 0; //byte[] bytes = new byte[1024]; //while ((read = input.read(bytes)) != -1) { // output.write(bytes, …
-
-
- 20 replies
- 7.6k views
-
-
Hey guys, One of my client's is still using Filemaker Server 12 on Windows 2012 R2. We've used ScriptMaster frequently in the past, but I'm transitioning to custom plugins to gain performance improvements here and there. Unfortunately, my custom plugin won't load. It doesn't seem that Server gives a good log entry on why it failed. I do see that it created the 360Works directory containing Java under ProgramData, but it seemed to fail loading right after that point. Restarting the server made no difference. I am, however, wondering if a potential conflict exists if I have both a custom plugin and ScriptMaster installed on a server. Is that possible? Any other id…
-
- 2 replies
- 1.3k views
-
-
I'm running FMPA 16.02.205 and ScriptMaster 5.05 in MacOS 10.12.6. ScriptMaster doesn't retain the activation state from one start of the app to another. It's not totally consistent either. Any ideas why the activation of the plug-in isn't being retained between app restarts?
-
- 0 replies
- 3.2k views
-
-
Environment: FMS 15 Windows Server 2012 host on Azure Plug in: 360Works ScriptMaster Purpose for using the Plug in: zip the pdf files. Problems We have: There are a large amount temp files created on the client machine which run the fmp to connect the server , the temp files won't removed. What I am looking for: Any script step can avoid these temp files stay in temp folder. How these files created? I attached a screenshot. Thanks
-
- 5 replies
- 2.6k views
-
-
I had tried to install v5.04 into FMS16 but no luck for me.
-
- 5 replies
- 1.8k views
-
-
I downloaded ScriptMaster v.5 (info tells it's v. 5.03, but downloaded file is 5.02). Registered plug-in in FileMaker Pro Advanced v14. Running any implemented script shows info: The previous script step, "<unknown>", could not be completed because of error. Do you wish to continue with this script? with Cancel and Continue buttons. When clicking Continue in open Script Debugger are visible few lines with steps "<unknown> [ NOT IMPLEMENTED]" in "Run script" script. After clicking Continue 2 times script ends, but do nothing. The same is with "AutoUpdate ScriptMaster Plugin" at startup of ScriptMaster.fm12 file. Is there something mis…
-
- 7 replies
- 2k views
-
-
I have been using the the scriptmaster plugin for sometime on a previous Mac, specifically for the Rotate Image function. The instalation on the previous Mac would have been FMP12 advanced, Scriptmaster plugin from about Sept 2015, and Mac OS 10.11.xx My solution used the function pasted into the startup script and although it wasn't fast, worked fine. I have now made a new installation of the Scriptmater Plugin, v5.05 on a new Mac running OS 10.12.5, FMP advanced 13, and there are a couple of strange things that appear to be assocaited with Java: 1. When I launch FMP it does not come to the foreground. Instead the foreground application is Java... 2. …
-
- 1 reply
- 3.8k views
-
-
since there is no need for SM5.x to install java: does the build in java support Java Unlimited Juristication Policy for 256bit encryption?
-
- 1 reply
- 1.3k views
-
-
It appears that the method getLength() on a fmpro.getContainerStream object is no longer available - it does appear as getSize() If this is true this will be why I have been tearing my hair out most of the day trubleshooting some functions Please can 360works confirm if this is A: correct B: indicate if they would like to put the getLength() method back too, so that functions can be backwards compatible Try this fcs = fmpro.getContainerStream ( 'Globals::g_C' ) // the name of a container field //comment out each in different versions to see effect return fcs.getSize() //return fcs.getLength() john renfrew
-
- 2 replies
- 1.3k views
-
-
I have a Java developer that frequently helps me with ScriptMaster functions. He has few quick questions: 1) Does ScriptMaster support callback method? 2) If a different script can access the Java instance that was instantiated by another script? Thank you in advance!
-
- 0 replies
- 1.2k views
-
-
I have been using the com.microsoft.sqlserver.jdbc.SQLServerDriver with a function I wrote, by placing the jar into the JVM /ext folder. Where would that be now for v5 of the plugin as it hides all that goodness from us on install???? Instead of an answer I am just getting the jar name
-
- 3 replies
- 1.1k views
-
-
I am running SM in Windows 10 using FM 16 Advanced. Like a lot of posters on this forum I had the <unknown> error; plus others. The solution to that problem is to open the SM .fmp12 file, locate the function and copy the code. Then, I went into my functions and located the same function (looked the same to me), deleted the existing code and repasted. It worked! Why? I have no idea. However, this plugin function will not work in runtime. FMaker has depricated runtime so it is, at this point, unsupported. SMaster is doing their best to see what the problem is but they can't call FMAKER so their efforts are limited. Note this: In the runt…
-
- 6 replies
- 1.9k views
-
-
finally got 5.03 from the download page works on a Mac on Windows 2012R2 I get this and I am getting a 701 eror in the server log please may we have an update??
-
- 2 replies
- 1.3k views
-
-
Good day, I have installed the ScriptMaster Plug-in on a Win 10, FM 14.6 advanced and I get below error for "Video Thumbnail (Requires QuickTime)". java.lang.NoClassDefFoundError: quicktime/util/QTHandleRefParameters:{timeUnit=600, pathToMovie=file:\\C:\Users\Siroos\Desktop\Temp Download}---Script---Script:import com.prosc.qt.*;File file = new File(pathToMovie);if (file != null) { int timeUnit = Integer.parseInt(timeUnit); // convert from a String return QTUtils.generateThumbnail(file, timeUnit);} $errorPosition is: ng.NoClassDefFoundError: quicktime/util/QTHandleRefParameters:{timeUnit=600 g I appreciate any help. Warm regard…
-
- 0 replies
- 895 views
-
-
I have several customers that are still running Wondows Version 9, which is a version out of date. On attempting to load a 64 bit, ScriptMaster generated Plug-In, I am seeing a dialog that ScriptMaster can't run without Java 64 bit. On installing Java, there is no change and the same issue persists. This goes as far as literally crashing FileMaker. Has anyone experienced this? Although it's really a Java issue, and the OS is out of date, I have two important customers running Windows 9.
-
- 1 reply
- 1.7k views
-
-
new (test) server install of FMS16 download ScriptMaster 5.03 install in server extension folder go to admin console Plugin is there, click box to load plugin. It waits for 10 seconds then crashes FMSE Clues??? edit: OK, download link for 5.03 has given me 360Works+ScriptMaster-5_0201 - is this the issue??? its not actually the latest version?
-
- 1 reply
- 1k views
-
-
in the older version the function would be RegisterGroovy( "SMisLoaded" ; "return true; isGui=false" ) now it is RegisterGroovy( "SMisLoaded" ; "return true"; "isGui=false" ) therefore ALL functions written with previous version fails ANY SUGGESTIONS??
-
- 6 replies
- 1.7k views
-
-
For the new version, going to test it like mad in the next few days.....
-
- 1 reply
- 1.2k views
-
-
ScriptMaster 5.01 is not working as usual. Just downloaded and updated and my solutions started to report errors on many dialog boxes.
-
- 0 replies
- 1.9k views
-
-
I am working on a project which requires me to make SOAP calls from FileMaker. I have successfully done that in the past thanks to ScriptMaster ability to handle that. It works beautifully. The new project now requires me to include a client certificate - issues by the SOAP API provider - in each requests. The documentation on their side is fairly scarce ("Install the certificate on your host" !). I have no idea how to handle that but something tells me that there is no reason why it would not be possible to "include" the certificate in the Groovy bit of the plugin... Any idea anyone ? Thanks
-
-
- 4 replies
- 1.9k views
-
-
Hi, I face something very weird. When I use a groovy pdf merge function, it works perfectly well with scriptMaster 4.32 release but fails with 4.42 one. Returned error is "ERROR: the document has no pages". The script : you can find it on french forum : https://www.fmsource.com/topic/45116-scriptmaster-manipulation-de-documents-pdf/#comment-262760 // iText_ConcatenatePDF ( fm_fileList ; fm_outputPath ; fm_setCompression ) // 20150130 Clem // v1.0 // Concatène une liste de documents pdf. // // ***** PARAMETERS ***** // fm_fileList : Une liste de chemins menant à des documents PDF. // fm_outputPath : Le chemin de sortie du document final. // fm_setComp…
-
- 1 reply
- 1.3k views
-
-
Hi, I am struggling : I have a script using 360Works_ScriptMaster.fmplugin functions. It used to run smoothly with FMP12 and 13. I had to update FMP and now the 360Works_ScriptMaster.fmplugin would not load. I have tried with both FMP14 and FMP15. The 360Works_ScriptMaster.fmplugin is not listed in the pref pane of FMP14/15, while — on the same machine (and the same java 8.121 version) — it is loaded. I have tried to have the file in these directories: /Application/ FMP FileMaker Pro 14 Advanced/Extensions or the ~/Library/Application Support/Filemaker/Filemaker Pro Advanced/14.0 (or 15.0)/Extensions. No success. Could someone have a clue about my problem? Many …
-
- 7 replies
- 3.7k views
-
-
Hello On my recent new MacBook as I was asked to hace a Java environment bay launching a FMP File using SMaster I think I commited an error : I installed le 64 bits version I found on Java jre-8u121-macosx-x64... I get errors in my app which works fine on my iMac ; I tried to reinstall the special version for mac but nothing changed. My question is how to fully uninstall every java on my MacBook under El Capitan and reinstall a functionnal version ? Thanks
-
- 0 replies
- 1k views
-
-
Hi, I created a plug. and run this indicates... "360Works requires a 32-bit version of java. " It requires java version 6 of 32 bit. I find only v8, anyone knows where i can get the v6 32-bit Heeelp me !! please Regards
-
-
- 16 replies
- 3.7k views
-
-
Hi all, I recently purchased the Advanced copy of Scriptmaster, after using free edition for several years now. One of the primary reasons for the purchase was to compile the scripts into a Plugin, which has some speed gains (and I'm hoping a few stability gains as well.) I compiled all our scripts into a plugin, however, and found that the functions from the plugin do not replace the functions created by Scriptmaster. This may mean that I need to overwrite each call made to the original Scriptmaster function with the new one of the same name, but from the generated plugin. Is there any method to make this faster, however? While not an ideal solution, I could us…
-
- 1 reply
- 1.3k views
-
-
Hello After a long time I come back to this forum on ScriptMaster. I use this plugin in a runtime solution under Filemaker 10 ! I installed the solution on a Windows 7 computer ; i Installed Java of course. And when I lauch the solution I get the following message "360Works plugin requires Java 1.5 or later, which is not installed on your computer. Download it from http://www.java.com (error 1)" On another Windows 7 I have not this problem. Hope in your help ! Noël
-
- 3 replies
- 1.5k views
-
-
In a system I built years ago, I register a ScriptMaster function with the following (obviously based on one of the ScriptMaster examples): RegisterGroovy( "PostDataToURL( key1 ; value1 ; key2 ; value2 ; key3 ; value3 ; key4 ; value4 ; url )"; "// Construct data¶ String data = URLEncoder.encode( key1, \"UTF-8\") + \"=\" + URLEncoder.encode(value1, \"UTF-8\" );¶ data += \"&\" + URLEncoder.encode( key2, \"UTF-8\") + \"=\" + URLEncoder.encode(value2, \"UTF-8\" );¶ data += \"&\" + URLEncoder.encode( key3, \"UTF-8\") + \"=\" + URLEncoder.encode(value3, \"UTF-8\" );¶ data += \"&\" + URLEncoder.encode( key4, \"UTF-8\") + \"=\" + URLEncoder.encode(value4, \"UTF…
-
- 0 replies
- 1k views
-
-
Hi, I have a problem with my plug-in ... i have this "ERROR" when i use https RunShellScript( "curl 'https://www.apple.com" ; "true" ; "0" ) FYI : It worked very well last week Process: FileMaker Pro [14467] Path: /Applications/FileMaker Pro 15 Advanced/FileMaker Pro Advanced.app/Contents/MacOS/FileMaker Pro Identifier: FileMaker Pro Version: 15.0.3 (15.0.3) Code Type: X86-64 (Native) Parent Process: FileMaker Pro [5615] Responsible: FileMaker Pro [14467] User ID: 501 Date/Time: 2017-03-09 09:29:26.938 +0100 OS Ve…
-
- 0 replies
- 2.3k views
-
-
SMLoadJar the main jar you get from http://www.apache.org/dyn/closer.cgi?path=/activemq/5.10.0/apache-activemq-5.10.0-bin.tar.gz And then here's the groovy code… RegisterGroovy( "sendToJMS( qURL ; qSubject ; qMessage )" ; "import javax.jms.*;¶ import org.apache.activemq.*;¶ ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(qURL);¶ Connection connection = connectionFactory.createConnection();¶ connection.start();¶ Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);¶ Destination destination = session.createQueue(qSubject);¶ MessageProducer producer = session.createProducer(destination);¶ TextMessage message = session.…
-
- 1 reply
- 3.6k views
-
-
Recently bought some DYMO M10 scales and wanted to grab the weight from them. Turns out this is not as easy as you think talking to USB, but after a lot of crashing out and frustration I managed to get a proof of concept working, so here to share... You will need hid4java and jna, best grabbing them from Maven // ReadDYMO // 17_02_28 JR // v1.0 // read weight from Dymo M10 scales //requires hid4java.jar and jna.jar import org.hid4java.* import org.hid4java.jna.* import java.nio.ByteBuffer // specifc to these scales Short VENDOR_ID = 0x0922 Short PRODUCT_ID = 0x8003 Short raw_weight = 0 DATA_MODE_OUNCES = 11 message = new byte[8] hidServices = Hi…
-
- 0 replies
- 1.7k views
-
-
Dear Masters, Currently I am using Filemaker pro 9. It has limited function to convert image to base64 (blob). As I know there are script on scriptmaster that can do convert image to base 64. I already try it but no luck. I copy the record of "Base 64 Encode" and change the script become "return new sun.misc.BASE64Encoder().encode( fmpro.getContainerStream( textToEncode ).getBytes() );" and the key parameter is "textToEncode" and the value I change become container and insert some picture in it. But when I press the Run button the encoded text are mentioning the filename of the picture that I inserted. Did I missing something or make some mistake ? Please…
-
- 0 replies
- 1.1k views
-
-
I am running a server script periodically (every hour lets say) which does some database maintenance, uploads some files, etc. I do this on a number of Filemaker Servers (latest server version running on Windows machines) without problems…except for one server. On this server I use scriptmaster to up load some large files into containers as they are generated from scientific instruments. The problem is that the server runs seems to run out of RAM memory after a "few" days. I think this is the only thing that this server does differently than the other 4 servers and feel that this is the problem. My question is…is there a way to "flush" memory used by the plugin or by the …
-
-
- 7 replies
- 2k views
-
-
Hello, I'm trying to export the field contents on the server using FM14. I'm currently trying to get this to work: It works when running on the client but when I'm trying to run it on the server I get the following error message: java.io.FileNotFoundException: /VOLUMES/..../servertest.txt (Permission denied) Both client and server are currently running on the same machine and should be writing to the same folder. The permissions for the folder is set to everyone read and write. Any idea what I'm doing wrong or missing?
-
- 1 reply
- 1.1k views
-
-
Here's some code I put together using the Ganymed SSH java library and examples to execute SSH commands using ScriptMaster. Its easier than doing SSH calls from RunShellScript. I'm sure there's improvements to be made. Cheers, JP // SSHCommand ( hostname ; privateKey ; username ; command ) // Uses Commons-Io-2.4.jar // Uses Commons-Lang-2.6.jar // Uses Ganymed-Ssh2-261.jar import java.io.IOException; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; import ch.ethz.ssh2.Connection; import ch.ethz.ssh2.Session; import ch.ethz.ssh2.StreamGobbler; final String stdout = new String(); final String stderr = new String(); try { // Co…
-
-
- 8 replies
- 6.5k views
-
-
I just purchased Scriptmaster Advanced, and entered in the license. When I attempt to generate a plugin, it gives the error: Server error: Unable to retrieve Scriptmaster license I've sent in a support request, but I wondered if anyone had experienced this error as well, and if it would be a simple fix from my end. Thanks! David Silverthorn
-
- 1 reply
- 1.4k views
-
-
I am a bit of a noob with ScriptMaster/Groovy, but managed to patch together different scripts I found to produce a flexible HTML Email script. I thought it might be useful to the ScriptMaster Community so am sharing it here. Any feedback/suggestions appreciated. It supports multiple attachments, and multiple recipients (separated by semicolons). Currently it only supports HTML (not plain text) as I only needed HTML. The code is as follows: HTMLEmail ( from ; to ; cc ; bcc ; subject ; htmlbody ; attachmentPath ; smtpHost ) import javax.mail.*; import javax.mail.internet.*; Properties props = new Properties(); props.setProperty("mail.smtp.host",…
-
- 8 replies
- 6.1k views
-
-
I want to export a PDF file from a container field to a file using FMS15. The Export Field Contents script step does not work on Server. It seems that Scriptmaster has a function to IMPORT from a file into a container field, and it works on a server. So what can I use to EXPORT from a container field to a file on the server? I want to avoid running FMP on the server machine, but I will if I have to.
-
- 2 replies
- 2k views
-
-
Hello, Application log can keep trace of user operations and can be used to debug some issues. Using database records is not enough fast in my experience, but using either a global field or a variable is not a solution in case of an application crash because data will not be saved. A possible solution could be using this plugin to write logs to local log file directly. My questions are: Will that be fast enough when used intensively to log script instructions and user operations ? Is the file opened and closed for each write instruction (so that writing are committed, otherwise it will not be useful in case of an application crash) ? Th…
-
- 0 replies
- 1.2k views
-
-
Been tearing my ears off most of the afternoon and there is an issue between 15 client and 15 server on Windows Simplest case load Java Mail 1.4.7 jar use the following function import javax.mail.* import javax.mail.internet.* fis = new FileInputStream(fm_fileIn) mimeMessage = new MimeMessage(null, fis) return mimeMessage.getContent().getContentType() and send it the path an EML mail file. Run from a client ON the server you get : >>multipart/alternative; boundary="B_3517403371_9455676" Run as PSOS from the same server with the same single jar loaded you get: >>No signature of method: javax.mail.util.SharedByte…
-
- 8 replies
- 1.5k views
-
-
Is it possible to get access to the fmpro object inside an inner class in code??? Example //at head of groovy code class myClass extends HelperClass { def xx = fmpro.evaluate('Get(PersistentID)') def ... def ... } Currently fails with groovy.lang.MissingPropertyException: No such property: fmpro for class: myClass
-
- 0 replies
- 1.7k views
-
-
Hi, I am very new to using ScriptMaster and have run into some problems when trying to run a few test lines of java. I am trying to create a module that will modify AcroFields on a PDF document, and am therefore going to be using the iText library. I have added this in the Jar Libraries section. Here is the script I am trying to run: import com.itextpdf.kernel.pdf.PdfDocument; import com.itextpdf.kernel.pdf.PdfWriter; import com.itextpdf.kernel.pdf.PdfReader; import com.itextpdf.forms.PdfAcroForm; //Initialize PDF document PdfDocument pdf = new PdfDocument(new PdfReader("C:/Users/Andy/Desktop/VA_Form.pdf"), new PdfWriter("C:/Users/Andy/Desktop/New_VA_Form.pdf"))…
-
-
- 4 replies
- 3.5k views
-
-
Hello, Last summer at the DEVCON, I was pleased to be introduced to ScriptMaster plugin. I've recently been testing it in order to use it in a production environment. All works as expected on OSX 10.5.6. The problem arises on the Windows platform. None of the examples that require user interface windows (dialog boxes, file chooser dialog, color picker dialog, JDialog objects, etc.) will work as expected. The main problem is the fact that the modal state is not preserved on Windows. Well it actually is preserved regarding the user's input, but the modal windows/dialogs shift to the background if the user clicks on FileMaker. Then the user is lost…
-
- 11 replies
- 4.7k views
-
-
I am attempting to utilize the Fedex modules but they do not show up in the ScriptMaster Module selector. Do these modules still exist, or am I missing something? Thanks.
-
- 1 reply
- 1.3k views
-
-
Hi There After Update to MacOS Sierra the RunShellScripts throws an error and opens a Apple Crash Error. Do you have any solution to this? We have installed Java 8 Update 101 Here the binning of the error dup: -------------------------------------- Process: FileMaker Pro [3368] Path: /Applications/FileMaker Pro 15 Advanced/FileMaker 15 Pro Advanced.app/Contents/MacOS/FileMaker Pro Identifier: FileMaker Pro Version: 15.0.1 (15.0.1) Code Type: X86-64 (Native) Parent Process: FileMaker Pro [3065] Responsible: FileMaker Pro [3368] User ID: …
-
- 2 replies
- 1.9k views
-
-
When using the "Send Mail With Attachment" function, sometimes our users get an error like this: This doesn't happen every time, and I haven't been able to figure out what triggers it. From looking around the internet, it sounds like it might be fixed by upgrading to a more recent version of JavaMail, but I'm not sure what version comes with ScriptMaster or if I can drop in a new jar and expect everything to continue working. I found one old blog post suggesting that this has been an issue for a long time, but without a solution: Has anyone else encountered this error?
-
- 4 replies
- 2.5k views
-
-
Hello, I'm new to scriptmaster, FM, Java, Groovy. I would like to know whether scriptmaster can help me do this. get valves from filemaker. open an specified excel file. input the values into predefined cells Run a VBA script. Get values from excel cells input the values into filemaker field Right now I manually opening the excel, input the values filemaker, run VBA script and input the cell values back to filemaker. Please give me a sample if possible.
-
- 6 replies
- 1.6k views
-
-
Hi I had a heap error in trying to list a voluminous folder, so I increased the memory as shown in the ProgramData folder. I redo an attempt and I have a java.io.FileNotFoundException error :, and since, all the scripts I use, the result is exactly the same error. Scriptmaster is stuck on this error. What can I do please ?
-
- 10 replies
- 2.5k views
-
-
Hi Jesse, First of all I am not so familiar with Java or Java-Scripts but i use some Javascript thru html and web-viewer and yesterday I download your very good Plug in Scriptmaster which have lot of helps in filemaker, bit I have a few questions about ScriptMaster Is it possible to implement JavaScript in, to get some result form Javascript? How to implement some other Jar files to ScriptMaster, because lot of nice Jar free files can be found and be useful ? I found for me very useful example: [color:red]joda-time-1.4 jar http://joda-time.sourceforge.net/ with which is very easy to get lot info for Date, time, Time zones or [color:…
-
- 5 replies
- 8k views
-
-
I'm at a loss as to why I'm getting "ERROR" when: I have an image (JPG) 3648 x 5472 pixels at this location: $crop_location = /Volumes/Macintosh HD/Applications/Wolf Spring/Wolf Spring Lightroom/Originals/Anderson_Austin_RB6649233682XA-O9330018750AV-crop.JPG The file location is definitely correct. This function: CropImage( $crop_location ; 0 ; 300 ; 3648 ; 5172 ) Should simply crop 300 pixels off the top, right? I get "ERROR" Any ideas?
-
- 7 replies
- 1.9k views
-
-
Hey all, forgive a semi-repeated topic.... however after a few days of scratching my head and nearly my own eyes out, I really need to put this out to this forum.. So I have been using Scriptmaster for a while and wanted to roll in the old but great command.. So I span up the trusty Scriptmaster file as base template and after adjusting the date and time in various ways and getting the magic '1' I sat and waited, and re-tried and waited... No matter what I try I can not seem to even get the demo script to run. I have tried with both time related questions at opening of file (I'm in UK so we use d/m/yyyy), also tried extension in both old and new locations... M…
-
- 2 replies
- 1.2k views
-
-
Hi, The plugin generated in scriptmaster, can be installed in FMS? Regards
-
- 2 replies
- 1.2k views
-
-
Hi, I created a plugin with scriptmaster. Register my plugin with an init script (when opening the database). QUESTIONS 1. How can I prevent anyone from using the plugin without my permission ... ex: creating a new database. 2. The plugin (apparently) can be used without entering the registration code, how can I avoid using it (if you have not entered your registration code)? Regards
-
- 2 replies
- 1.3k views
-
-
The following is the "Copy File" function from the ScriptMaster FMP12 file. It works as it should. I need to register it as a function, and am having problems getting the return state back (because I don't know enough Java): *************************************************** InputStream input = new BufferedInputStream(new FileInputStream(src)); OutputStream out = new BufferedOutputStream(new FileOutputStream(dest)); try { out << input; } finally { if (out != null) out.close(); if (input != null) input.close(); } return true; *************************************************** This is what I was trying to use…
-
- 2 replies
- 2k views
-
-
Once again, but now with more urgency, please can you indicate a timeframe for updating ScriptMaster to be able to use later versions of Java on the Mac. There is a completely brand new version of iText (in readiness for PDF 2.0) which has a whole new set of libraries, the code I use needs rewriting in some places, but more importantly is giving MajorMinor version errors as soon as I write my first line of code. I already have several functions I can not move but this is somewhat of a killer for me, given that is it my specialist subject... This has been rumbling on for too long without any clear help from 360Works. john
-
- 2 replies
- 1.4k views
-
-
I have found similar posts, but not quite what I am experiencing. I can start a clean copy of FileMaker, install the scriptmaster plugin (via the install plug-in script step), and everything works beautifully for that session. However, when I close FileMaker and re-open it, it crashes -- every time. The error is: Problem signature: Problem Event Name: APPCRASH Application Name: FileMaker Pro Advanced.exe Application Version: 14.0.1.175 Application Timestamp: 5538423e Fault Module Name: 360Works_ScriptMaster.fmx Fault Module Version: 0.0.0.0 Fault Module Timestamp: 550aeae2 Exception Code: c0000005 …
-
- 2 replies
- 1.7k views
-
-
Hi there, I would like to be able to trigger FM server to execute a .bat file. For this purpose I use "Perform Script on Server" combined with SM RunShellScript ( "C:\dothis.bat" ; True ; 30 ), but nothing happens. The function returns ok (Executed Shell Command: ........) - no errors. I can easily execute a system commands like echo, dir etc., but for some reason not a .bat file. I have tried calling the cmd.exe prior to the .bat path, but it doesn't help. RunShellScript( "cmd.exe /c C:\rename.bat" ; True ; 30 ) My goal it to run the .bat file on the server, not in the client - so I can't use Send Event... Do anyone know if it's even possibl…
-
- 20 replies
- 5.8k views
-
-
I'm using a custom Plugin made with ScriptMaster 4 Advanced in Server-side scripti on FileMaker Server 13/14. The Plugin logs the record in "360Plugins_ServerScripting64.log" file on every event, not only registration function but also all functions. So the size of the log gets huge. Is there any way to keep this file small or to stop logging?
-
-
- 9 replies
- 2.8k views
-
-
Hi there, I need to make https requests to server with SNI-support. Therefore I'm using Apaches httpclient libray. Since version 4.3.2 the library does support requests to servers with SNI enabled. I added the needed jar libraries to Scriptmaster and I'm using following Script for testing purposes (can be found here): /* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Lice…
-
- 2 replies
- 5.9k views
-
-
Hello, I use ScriptMaster 4.42 360 Works with FileMaker 14, can you tell me how to encode an XML feed in UTF-8?
-
- 2 replies
- 1.3k views
-
-
Hello, At the end of a runtime Filemaker 12 I have a script that save in a zip all USR files of the solution ant that's OK. In a folder called Datas_App I store many sub-folders and files. I' looking for a solution to save copy that folder on an external support : the first time it would be copied the next times would only be added the files created from one to the other day. Are there scripts doing these things ? Thanks Don't worry more ! I retrieved the help brought by the friend Clemhoff on that link
-
- 0 replies
- 1.1k views
-
-
Getting lots of crashes caused by ScriptMaster on all versions of Windows: - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> - <System> <Provider Name="Application Error" /> <EventID Qualifiers="">1000</EventID> <Level>2</Level> <Task>100</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2016-04-13T19:18:17.000000000Z" /> <EventRecordID>21531</EventRecordID> <Channel>Application</Channel> <Computer>FrontDesk1-PC</Computer> <Security /> …
-
- 0 replies
- 1.8k views
-
-
I am trying to use ScriptMaster GetFileAsContainer to populate a container field with a file in the temporary path. My script is basically: set variable ($pathToFile = "file:" & get(temporarypath) & "test.xlsx") export records ($pathToFile) set field (myContainer = GetFileAsContainer( $pathToFile )) The file is created, I can see it, the container field exists and is in the current context, The ScriptMaster module is registered, but I am getting an ERROR in the container. Any help? Thanks
-
- 6 replies
- 1.8k views
-
-
A post on the FileMaker community posed a question about getting back to a PDF file from what had been stored in an SQL table after a sync with MirrorSync from FileMaker original question here..https://community.filemaker.com/thread/155073 The saved data is a hex string in this case... so at the risk of giving away the keys to a magic kingdom, the answer is quite easy. // PDFfromHex ( fm_hex ) // 16_04_02 JR // v1.0 // converted HEX back to a pdf file // requires Apache Commons jar import org.apache.commons.codec.binary.Hex try{ decoded = Hex.decodeHex(fm_hex.toCharArray()) PDFfile = new File('/Path/to/my/saved.pdf') fos = new FileOutputStream(PDFfile) …
-
- 3 replies
- 5.3k views
-
-
Hi all Can SM's SetClipboardData function include carriage returns? I have tried to copy to the clipboard a variable that has carriage returns in it, however when I paste, they do not show. When I use FM's native 'copy' script step is does include the carriage returns. I would prefer to use SM's as I do not have to have it look to a field. Thanks
-
- 2 replies
- 1.4k views
-
-
Hi! FM14Pro Adv on Win7 Pro. I want the user to give the possibility to create folders where pdf files are saved avoiding OS GUI obtained with a plugin or "Get Directory" step. IMO this is the best way to have lots of empty "New Folder n" on the hard disk. I figure this can be done in FM using this plugin, which lists also system directories which are hidden. How about changing this plugin in order to have a list with just the "public" directories? A parameter with - "0" only not hidden - "1" all could do the same, I suppose. TIA. Arnaldo
-
- 2 replies
- 1.3k views
-
-
Hi all At my wit's end with this one. I've got an INSERT VALUES SQL command, but it will not insert a date value: SMExecuteSQL ( "INSERT INTO Log (Log_Personnel_IDF,Log_Date) VALUES (" & $$Personnel_ID & ",'20/03/2016')") It is absolutely fine with all other value types, just not the date one. I get an 8309 error. I have tried different date formats, and get (currentdate) - which is what I really need to populate the new record.
-
- 1 reply
- 1.3k views
-
-
Hello I'm having major issues with FMP12 and large PDFs when printing to PDF so I tried Ocean West's suggestion of using ScriptMaster and iText to merge save as pdf pages, but the file size is still too large. I'd like to try to compress the pdf using iText, but I'm having problems making it work. Using the example code from iText in Action: /** * Manipulates a PDF file src with the file dest as result * @param src the original PDF * @param dest the resulting PDF * @param pow the PDF will be N-upped with N = Math.pow(2, pow); * @throws IOException * @throws DocumentException */ public void compressPdf(String src, String dest) throws…
-
- 16 replies
- 11k views
-
-
Hi I use this groovy script made by john renfrew ( Thank's ) to zip a folder. It works fine, but the original folder is locked by filemaker and i can't delete it. I try IsGui=False or not What can I do ? // ZipDir ( fm_dirIn ; fm_fileOut ) // 10_12_23_JR WORKING // v1.0 // adds all of tree from starting directory to zip file // adapted from Solomon Duskis, http://www.jroller.com import java.io.File import java.io.FileInputStream import java.io.FileOutputStream import java.util.zip.ZipEntry import java.util.zip.ZipOutputStream try { topDir = new File(fm_dirIn) zipOut = new ZipOutputStream ( new FileOutputStream(fm_fileOut) ); topDirLength = topDir.ab…
-
-
- 21 replies
- 3.1k views
-
-
Hello I created the Plugins through Script Master Advanced 4.42 (Mac). For testing of a solution i installed on Windows 7 Filemaker 14 Advanced both 64 Bit and later also 32 Bit. The custom PlugIn was placed into the Extensions Folder of Filemaker. On Start of Filemaker the program hangs with the Error. Problemsignatur: Problemereignisname: APPCRASH Anwendungsname: FileMaker Pro Advanced.exe Anwendungsversion: 14.0.4.406 Anwendungszeitstempel: 562fa3f1 Fehlermodulname: fmProve.fmx64 Fehlermodulversion: 0.0.0.0 Fehlermodulzeitstempel: 550aead4 Ausnahmecode: c0000005 …
-
- 15 replies
- 3.9k views
-
-
Hi all Is there a way that SM can (quickly) extract email addresses from a large text variable? Thanks
-
- 5 replies
- 1.5k views
-
-
Howdy everyone! Until now, we had a very good luck sending data with PostXML (FM 10, Scriptmaster 4.206). Now we are trying to connect, for testing purposes, to a server with a self signed certificate and we get the following message: javax.net.ssl.SSLHandShakeException: java.security.cert.CertificateException: No subject alternative DNS name matching... What I've tried to do is to import the certificate (provided by the server owner) into the Keychain (MacOS 10.7) and into the Java Control Panel in System Preferences. So far, no luck. Any tips, help, experience?
-
- 1 reply
- 1.8k views
-
-
Last version of Windows 10 has a lot of problems with Scriptmaster 4.42 In my case I tested FileMaker 14 32bit and 64 bit, Pro and Developer. Four versions crashes. I put Scriptmaster 4.32 and it runs ok again. I hope 360works have a new version soon
-
- 3 replies
- 1.5k views
-
-
Hi all I have a delete SQL command that freezes FM for around 40 seconds, before succesfully executing the command. The table in question has 30,000 records. The command is: "DELETE FROM Originals WHERE Case_IDF IS NULL AND LOWER (Receive_Subject) LIKE LOWER ('%" & Settings::Case Filter Spark & "%')" Have I done anything wrong here?
-
- 2 replies
- 1.1k views
-
-
Hi anyone has any advice, I need to create a record (since FM) in a DB Airtable (ideal use a function ScriptMaster). Airtable publishes ws to Create Record (curl and js) use library groovy wslite, I try with : -> header{'Authorization:Bearer key***************'} -> header{Authorization('Bearer key***************')} -> header{'Authorization':'Bearer key***************'} -> header{'api_key=key***************'} -> header{'api_key=Bearer key***************'} -> header{Authorization('Bearer key***************')} MESSAGE ERROR !! ___…
-
-
- 2 replies
- 1.5k views
-
-
I now have my third Java libary which I can not update because as soon as I do I get the Major/Minor version error popping up striaght away. So, 360works peops, would you care to share a timetable for moving from the dependency on Java 6 on the Mac???
-
- 2 replies
- 1.3k views
-
-
Hi all I need FileMaker to send out 'multipart/alternative' emails with the following contents: Part 1: text/html (or whatever you like) - this is displayed to "ordinary" mail readers or as a fall-back and contains a summary of the event in human readable form Part 2: text/calendar; method=REQUEST, holds the contents of the ics file (the header method parameter must match the method in the ics). Watch out for the correct text encoding, declaring a charset header parameter won't hurt. I'm trying to recreate Outlook calendar invite emails. Apparently it is possible, but I don't know whether FM/SM can achieve this: http://stackoverflow.com/questions/46…
-
- 0 replies
- 1.1k views
-
-
Hello All, I am attempting to use the plugin to perfrom a WGET and download a file. My WGET command that works in the SHELL is: wget [email protected] --password=PASSWORD -O import.csv "https://portal.shoretelsky.com/DataExport/TDRData?startDate=2016-01-01&endDate=2016-01-21&direction=inbound&connected=true&subscribers=6179608952" This downloads the file to my home directory. In ScriptMaster I get an error: java.lang.RuntimeException: Process was Terminated Any help would be greatly Appreciated.
-
- 0 replies
- 1k views
-
-
I compiled a plugin for both Win and Mac using the latest version of the ScriptMaster plugin (4.42). The plugin generates barcodes using the barcode4j library (jar file). On Windows, the 32-bit and 64-bits versions work fine. In Scriptmaster, on Mac, I can run scripts using the code, and register the function. The functions work perfectly. On Mac OS X 10.10 and 10.11 in FileMaker Pro Advanced 14 the compiled plugin works only every 2nd time when I uncheck and check the plugin again in FileMaker > Preferences... > Plugins, Enabled plug-ins. When the plugin does not work (ERROR is returned), if I check and uncheck in Preferences in FileMaker, I get the message "…
-
- 3 replies
- 1.9k views
-
-
Hello, I'm lost in the forum because I don't speak english very fluently. I'm looking for a sample file showing how to create a pdf file from a FileMaker layout through the iText library. I need that to ger pdf files in a runtime solution. If such a file exists, thanks to those who give me a link. Regards Noël
-
- 5 replies
- 1.7k views
-
-
Hello, I use ScripMaster and the SendEmail with attachment script ; I had no problems until I installed Printer Switch plugin myFMbutler. This pi creates the pdf file attached to the email; I get an error message (see screenshot). However the message is sent with his attachment and this explains the topic title ! What can I do to avoid that message ? Thanks and regards Noël
-
- 2 replies
- 1.4k views
-
Recently Browsing 0
- No registered users viewing this page.
Who's Online (See full list)
- There are no registered users currently online