1 Reply Latest reply on Sep 20, 2010 1:55 PM by philmodjunk

    Trigger non-IWP scripts from IWP?



      Trigger non-IWP scripts from IWP?


      Under Instant Web Publishing, the set of script steps permitted to run is restricted.

      Is there a way (from a "Run Upon Close" script) to reliably trigger a script to run _outside_ of IWP, to clean up/summarize/report on the IWP session that just closed or timed out?


      Larry Goldman

        • 1. Re: Trigger non-IWP scripts from IWP?

          This approach might work.

          Define a utility table with the needed fields to document the job that needs to be run.

          When an action from an IWP user triggers the need for your "non IWP" script to run, have your script create a new record in this table logging any needed specifics.

          Set up a server schedule to run a script once a day (or any other practical interval) that checks this table for new records, performs the specified tasks and then set's a value in a field in this table to log the fact that the task(s) have been completed. If there are script steps that are also incompatible from the server side, set up a FileMaker "robot client" to run the script at a scheduled time.