We have reset all users FileMaker related profile fields. Please take the opportunity to update your information,  this will provide background to members whom read your posts. Click here.

Jump to content

Search the Community

Showing results for tags 'scriptmaster'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Custom Function Library

Community Forums

  • Community Resources
    • Community Articles, Tips, & Techniques
    • FileMaker Marketplace Discussions
  • FileMaker Security Management
    • Security Concepts
    • Intellectual Property
  • FileMaker Server Administration
    • FileMaker Server 16
    • FileMaker Custom SSL Certificates
    • External Server Authentication
  • FileMaker Go & Mobile Strategies
    • FileMaker Go for iPhone & iPad
    • iBeacon Support
    • FileMaker IOS App SDK
  • FileMaker and the Internet
    • FileMaker REST API
    • FileMaker Cloud
    • FileMaker WebDirect
    • Custom Web Publishing
    • Other Internet Technologies
  • FileMaker Interface Features
    • Cards & Window Management
    • Interface Design Discussions
    • Layouts
    • Themes and Styles
    • Button, Popovers, Button Bars, SVG Icons
    • Tab and Slide Control Panels
    • Portals
    • Web Viewer
    • Conditional Formatting
    • Custom Menus
    • Value Lists
    • Tool Tips
  • FileMaker Schema & Logical Functions
    • Managing Scripts
    • Calculation Engine (Define Fields)
    • Custom Functions Discussions
    • FileMaker Query Language or FQL
    • Relationships
    • Charting
    • Remote Container Fields
    • Finding & Searching
    • Importing & Exporting
    • External Data Sources
    • Advanced & Developer Features
    • Reports, Printing & Publication
  • Brain Food
    • The Left Brain
    • Upgrading & Migration
    • Data Analysis
    • Development Standards
    • The Separation Model
    • Relational Database Theory
    • Damaged / Corrupt File Problems
    • OS Level Database Automation
    • Hardware & Networking
    • Bar Codes (Printer, Scanners, Software)
    • Accounting Solutions
  • FileMaker Discussions
    • FileMaker Pro 16 Discussions
  • Geist Interactive Product Support Forums
    • Visit Geist Interactive
    • Visit Modular FileMaker
    • FMPerception
    • Generator
    • fmQBO
  • 360 Works Official Product Support Forums
    • 360 Works General Support
    • MirrorSync by 360Works
    • SuperContainer by 360 Works
    • ScriptMaster by 360 Works
    • FTPeek by 360 Works
    • 360Works Email Plugin
    • DocuBin by 360 Works
    • Zulu – FileMaker, iCal & Google Calendar.
  • FM Forums Affiliate Sponsors
    • SyncServer Pro by LinearBlue
    • Open Source Frameworks
    • Monkey Bread Software (MBS Plugin)
    • FileMaker Plug-Ins
    • ISO FileMaker Magazine
    • User Group Central - Sponsored by FMPug.com
  • FM Starting Point - By Richard Carlton Consulting
    • Visit FM Starting Point
    • FM Starting Point - General Discussions
  • FileMaker Classifieds
    • FileMaker Product & Service Announcements
    • Professional FileMaker Training
    • Services for Hire
    • Services Wanted
    • Solutions Wanted
    • Tools Of The Trade
  • The Water Cooler
    • Member Lounge
    • Wants & Wishes
  • FM Forums Operations
    • FM Forums Feedback & Site News
    • Site Instructions
  • FileMaker Platform
  • Dungeon

Blogs

  • Captain's Blog
  • FileMaker Weetbicks
  • FileMaker Security Blog
  • The FileMaker Rift
  • HOnza's Bits @ FMForums
  • SeedCode
  • CampSoftware, Hal Gumbert
  • FileMaker Hacks
  • Skeleton Key's Blog
  • Wing Forward Solutions
  • 360Works Articles and Tutorials
  • GoBillit
  • Filemaker - an amateur's view
  • Linear Blue
  • Surya Kanta Mekap's Blog
  • eXcelisys' Blog
  • Manjit Behera
  • Blue Feather's Blog
  • RCC's FileMaker News and Bits
  • Thorsen Consulting
  • DB Services Blog
  • FileMaker Magazine
  • Eye on FileMaker
  • Dev Talk
  • The Philosophy of FileMaker

Categories

  • Samples
  • Solutions
  • White Papers
  • Plug-Ins
  • FMGo

Found 38 results

  1. 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.
  2. ScriptMaster 5.01 issues

    ScriptMaster 5.01 is not working as usual. Just downloaded and updated and my solutions started to report errors on many dialog boxes.
  3. 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. Executing SSH commands

    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 { // Convert private key to character array char[] privateKeyArray = privateKey.toCharArray(); // Create and open connection Connection theConnection = new Connection(hostname); theConnection.connect(); // Authenticate with public (private really) key boolean isSuccess = theConnection.authenticateWithPublicKey(username, privateKeyArray, null); if (isSuccess == false) throw new RuntimeException( "ERROR: Authentication error" ); // Open seession and execute command final Session theSession = theConnection.openSession(); theSession.execCommand(command); // Get stdout stream and convert to string final InputStream stdoutStream = new StreamGobbler(theSession.getStdout()); final InputStream stderrStream = new StreamGobbler(theSession.getStderr()); stdout = IOUtils.toString(stdoutStream, "UTF-8"); stderr = IOUtils.toString(stderrStream, "UTF-8"); // Close streams stdoutStream.close(); stderrStream.close(); // Close the session and connection theSession.close(); theConnection.close(); if (StringUtils.isNotEmpty(stderr)) throw new RuntimeException( stderr ); // Return the string return stdout; } catch (IOException e) { throw new RuntimeException( e ); }
  5. 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
  6. 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. Time-line for update

    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
  8. Hi, I have a little problem to run a Merge PDF with the new version of scriptmaster (4.42) and iText 5.5.5 on a Filemaker Pro 14.05 adv on windows 7. With this 4.32 version it works: https://dl.dropboxusercontent.com/u/30717534/M4.32.fmp12 However with this new version 4.42, the Merge PDF script fails: https://dl.dropboxusercontent.com/u/30717534/M4.42.fmp12 I have tried to get help on another forum, but unfortunately for the moment we didn't found the solution. We arrived at the conclusion that it must be something by my side, but I cannot figure out what is the problem, as I tried on 3 different computers. Could anybody try my files on a windows platform please and give me feedback please? Does anybody have an idea how to fix it? Thanks a lot
  9. Hello, I'm a ScriptMaster Advanced Edition user (I subscribed it during last January) and I have a problem with the registration of a plugin that I created for my environment. I describe my environment by hoping that you can support me to solve the problem that I have: 1. I'm using ScriptMaster on a Mac system (Yosemite) on which both FileMaker Advanced Pro 13.09 and FileMaker Server 13.09 are installed. 2. I developed and tested with ScriptMaster some functions that I included inside a plugin and I created it with the name myPlugin on my Mac. 3. I have put the produced plugin myPlugin.fmplugin in the 2 directory that I use in my FileMaker environment, I mean: - HD1/FileMaker Server/Database/Extensions - HD1/FileMaker Server/Web Publishing/publishing-engine/cwpc/Plugins 4. I opened a FileMaker file that uses the functions of my plugin and I registed the plugin on FileMaker Pro Advanced by using the key created by ScriptMaster at the end of the plugin creation. 5. I deployed my FileMaker file on the FileMaker Server and I work with it so that one of the functions inside the plugin is invoked. The function worked as good as expected but... inside the 360Plugins_ServerScripting64.log file I see the following info: INFO: Registered successfully with demo license; will run for two hours after launch. And infact it's so: after two hours the plugin stops to work and I'm not more able to use my functions... I suppose there's something wrong in the procedure that I follow to register my plugin or, maybe, there's something wrong in my machine environment... I don't know... But I can't work... Could you please help me to understand how to solve this problem? Thanks a lot for your support. Massimo Becattini
  10. Hi Folks, I'm wondering if anyone out there is having stability issues when running server side scripts which use ScriptMaster on FileMaker 13 Server. Everything seems to run well for a while, but after running for a while, scripts running on FileMaker Server Side start failing. It appears that every time a script using ScriptMaster runs server side, the appopriate JAR files are loaded, but when the script is done those file handles are never released. Eventually, the number of open file handles gets to the maximum allowed for a user/process and the fmsased process can no longer open any files. This means that ScriptMaster can no longer load (even FileMaker functions such as server side sending mail via SMTP won't work), until you reset the server side process via: fmsadmin restart fmse You can keep track of the ever growing list of ScriptMaster JAR handles via the following command: lsof | grep ScriptMaster | grep jar | wc -l So has anyone out there seen this issue or found a work around? I never saw this issue with FileMaker 12 Server, so I'm not sure if its a FM Server issue or a ScriptMaster issue. I have tried adding an "SMReset" prior to the initialization of ScriptMaster, and when my script is about to end. It does not seem to release the JARs. I'm going to try having my script check the number of open files for the fmsaed process: lsof -p `pgrep fmsased` | wc -1 and when that number gets too large ( say 100,000) restart the fmse engine with: fmsadmin -y restart fmse Cheers, JP
  11. Has anyone had success using the zxing library to read/decode bar codes with ScriptMaster ? I generate them just fine using the Barcode4J library. I think I am having dependency issues (take a pill...) and not much forward momentum getting it to work. Examples, suggestions or commiseration are greatly accepted. regards... Bob Minteer
  12. I've built a new plugin made by ScriptMaster Advanced 4 and trying to use it on FileMaker Server 13. It works well in 2 hours, but seems to expire after that. Registration script works well on client-side(FileMaker Pro), but does not work on FileMaker Server. What should I do to use the plugin on FileMaker Server? Thank you in advanced.
  13. Right now I can't get the plugins to load in the server, so I'm assuming FMS 13 isn't supported at the moment since it's new, but I want to check here just to be sure and that I'm not doing something wrong. I've tried running install plugin scripts on the server (after checking the appropriate options in the console) and placing the plugins in the server's extension directory and restarting the server. The Admin console still shows no available plugins listed. I've done this with both the standard and 64 bit versions of the windows plugin. Using windows Server 2008 R2 SP1 Standard.
  14. I'm using the java project "selenium" with "ghostdriver" and phantomjs as my browser to create screenshots of web pages. My code works perfectly in groovyConsole but has an error with the phantomjs driver once inside Scriptmaster. I think the problem may be that it requires access to a binary phantomjs that is not part of the jars. This is the code that executes in groovyConsole and produces a screenshot: import java.io.File import java.util.concurrent.TimeUnit import org.apache.commons.io.FileUtils import org.openqa.selenium.OutputType import org.openqa.selenium.TakesScreenshot import org.openqa.selenium.WebDriver import org.openqa.selenium.phantomjs.PhantomJSDriver System.setProperty("webdriver.phantomjs.driver", "/jars/phantomjsdriver-1.0.4.jar") System.setProperty("phantomjs.binary.path", "/jars/phantomjs") WebDriver driver = new PhantomJSDriver(); driver.manage().window().maximize() driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS) driver.get("http://www.google.com") File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE) FileUtils.copyFile(scrFile, new File("google.png"), true) driver.close() The error I get from Scriptmaster is: Its also worth noting that in groovyConsole, the code still works without the two setProperty lines. If I simplify the code the code to just: import org.openqa.selenium.OutputType import org.openqa.selenium.TakesScreenshot import org.openqa.selenium.WebDriver import org.openqa.selenium.phantomjs.PhantomJSDriver System.setProperty("webdriver.phantomjs.driver", "/jars/phantomjsdriver-1.0.4.jar") System.setProperty("phantomjs.binary.path", "/jars/phantomjs") WebDriver driver = new PhantomJSDriver() driver.get("http://www.google.com") driver.close() I get the same error in Scriptmaster and no error in groovyConsole.
  15. (Apologies if this is made clear somewhere else, I can not seem to find an answer here or anywhere) Thank you for looking at this and for any feedback. I am not sure if my issue is a bug or a feature... I have just created my first plugin. It requires 2 jar files which are not included with SM. It seems the function will not work unless I have the 2 jar files in a directory where java expects to find jar files (by default, or some other location which has been added to the path file). This is not an issue on my development machine, but my intention is to make this portable. So the question at hand is this: Does ScriptMaster, and/or plugins generated with SMA, completely handle the loading of jars? or do I need to have the jars located in a folder where java expects to find them? I have: Added the jars to SM using the 'add' button on the Jar Libraries layout, in the ScriptMaster File Associated the jars to the script via the checkboxes in the 'Jars' tab of the Edit Script Layout Verified the Jars are loaded using SMGetLoadedJars Successfully tested the function with the 'Run Script' Button on the Edit Script Layout Registered the Function (and set it to register on startup) Successfully tested the function in the FM solution I intend to use it with Everything works until I remove the jars from /Library/Java/Extensions (on osx). Then, after restarting FM, my function returns an error indicating it can not find the class it needs (which is to say, it cant find the jar). I have tested this thoroughly. Is this the way it is supposed to work? Please let me know if I can provide more info to help troubleshoot this. My sincerest thanks to anyone who can point me in the right direction, -Jim java version "1.6.0_65" Java SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) Java HotSpot 64-Bit Server VM (build 20.65-b04-462, mixed mode)
  16. We have ScriptMaster 4, free version. We have a Filemaker 11 Server on a Windows 2003 Server (ServicePack 2). There we have installed and started the ScriptMaster plugin successfully, (32-bit version for Windows, in the /Extensions folder). We have Filemaker Pro 11 clients, both on Mac and on Windows 7. The Mac clients can see and execute groovy scripts using ScriptMaster, the Windows clients cannot even see the plugin in the preferences. I have tried the 64-bit version on the server, in desperation, (and it still works for Mac clients, but not from Windows!) but Windows 2003 Server is 32-bit in actual fact. This has got us absolutely stumped, why does it work on Mac clients but not on the Windows clients?
  17. Inverting an image

    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, null); BufferedImage negative = op.filter(img, null); return negative; Cheers jp
  18. 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
  19. 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!
  20. 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 theConnection = new Connection(hostname); theConnection.connect(); // Authenticate with public (private really) key boolean isSuccess = theConnection.authenticateWithPublicKey(username, privateKeyArray, null); if (isSuccess == false) throw new RuntimeException( "ERROR: Authentication error" ); // Create SCP client and get remote file to local target directory SCPClient theClient = new SCPClient (theConnection); theClient.get(remoteFile, localTargetDirectory); // Close the connection theConnection.close(); return; } catch (IOException e) { throw new RuntimeException( e ); } SCPPut ( privateKey ; hostname ; username ; remoteTargetDirectory ; localFile ) 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 theConnection = new Connection(hostname); theConnection.connect(); // Authenticate with public (private really) key boolean isSuccess = theConnection.authenticateWithPublicKey(username, privateKeyArray, null); if (isSuccess == false) throw new RuntimeException( "ERROR: Authentication error" ); // Create SCP client and put local file to remote target directory with mode 600 SCPClient theClient = new SCPClient (theConnection); theClient.put(localFile, remoteTargetDirectory); // Close the connection theConnection.close(); return; } catch (IOException e) { throw new RuntimeException( e ); } Code on, JP
  21. 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
  22. Issues loading Jar

    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?
  23. FedEx Tracking

    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-ENV:Envelope"; soapRequest += " xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/""; soapRequest += " xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/""; soapRequest += " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance""; soapRequest += " xmlns:xsd="http://www.w3.org/2001/XMLSchema""; soapRequest += " xmlns="" + targetNamespace + "">"; soapRequest += "<SOAP-ENV:Body>"; soapRequest += "<TrackRequest>"; soapRequest += "<WebAuthenticationDetail>"; soapRequest += "<UserCredential>"; soapRequest += "<Key>" + accountKey + "</Key>"; soapRequest += "<Password>" + accountPassword + "</Password>"; soapRequest += "</UserCredential>"; soapRequest += "</WebAuthenticationDetail>"; soapRequest += "<ClientDetail>"; soapRequest += "<AccountNumber>" + accountNumber + "</AccountNumber>"; soapRequest += "<MeterNumber>" + meterNumber + "</MeterNumber>"; soapRequest += "</ClientDetail>"; soapRequest += "<Version>"; soapRequest += "<ServiceId>trck</ServiceId>"; soapRequest += "<Major>6</Major>"; soapRequest += "<Intermediate>0</Intermediate>"; soapRequest += "<Minor>0</Minor>"; soapRequest += "</Version>"; soapRequest += "<PackageIdentifier>"; soapRequest += "<Value>" + trackingNumber + "</Value>"; soapRequest += "<Type>TRACKING_NUMBER_OR_DOORTAG</Type>"; soapRequest += "</PackageIdentifier>"; soapRequest += "</TrackRequest>"; soapRequest += "</SOAP-ENV:Body>"; soapRequest += "</SOAP-ENV:Envelope>"; wr.write(soapRequest); wr.close(); // Get the response String response; InputStream responseStream; try { responseStream = conn.getInputStream(); success = 1; } catch( IOException e ) { success = 0; if( conn.getResponseCode() == 500 ) { responseStream = conn.getErrorStream(); } else throw e; } response = responseStream.getText("utf-8"); responseStream.close(); replaceText = " xmlns="" + targetNamespace + """; response=response.replace(replaceText,''); return response;
  24. FTP functions

    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_password names = listFiles(remote_path) logout() disconnect() } //end with } catch (e) { return e } //end try sdf = new SimpleDateFormat("dd/MM/yyyytHH:mm") sdg = new SimpleDateFormat("yyyy/MM/dd") sdh = new SimpleDateFormat("HH:mm") list = [] filenames = [] TAB = 't' names.each{ if(it.getType() == FTPFile.FILE_TYPE){ tx = it.getTimestamp().getTime() list.add(new Expando(date:sdg.format(tx), time:sdh.format(tx), fmdate:sdf.format(tx), name:it.getName(), size:FileUtils.byteCountToDisplaySize(it.getSize()))) } //end if } //end each // SORT by date, then time, then name ls = list.sort{x,y -> x.date<=>y.date ?: x.time<=>y.time ?: x.name<=>y.name} ls.each{ filenames += it.fmdate + TAB + it.size + TAB + it.name } //end each return filenames ?: false Get specific file // FTPgetFile ( ftp_host ; ftp_user ; ftp_password ; remote_path ; local_path ; fm_file ) // 13_05_22 JR // v1.0 // downloads file from fTP site, returns true if successful or false or error import org.apache.commons.net.ftp.FTPClient import org.apache.commons.net.ftp.FTP SEP = System.getProperty("file.separator") try{ new FTPClient().with { connect ftp_host enterLocalPassiveMode() login ftp_user, ftp_password changeWorkingDirectory remote_path setFileType(FTP.BINARY_FILE_TYPE) incomingFile = new File(local_path + SEP + fm_file) incomingFile.withOutputStream { ostream -> retrieveFile fm_file, ostream } //end stream logout() disconnect() } //end with } catch (e) { return e } //end try if (!new File(local_path + SEP + fm_file).size()){ return false } return true Delete specific file // FTPdeleteImage ( ftp_host ; ftp_user ; ftp_password ; remote_path ; fm_file ) // 13_05_22 JR // v1.0 // deletes file from fTP site, returns true if successful or false or error import org.apache.commons.net.ftp.FTPClient try{ new FTPClient().with { connect ftp_host enterLocalPassiveMode() login ftp_user, ftp_password changeWorkingDirectory remote_path deleteFile fm_file logout() disconnect() } //end with } catch (e) { return e } //end try return true
  25. 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.
×