4 Replies Latest reply on Aug 27, 2013 10:18 AM by maximeleve

    Script and Trial Period

    maximeleve

      Hello,

       

      A friend asked me a question. Is it possible to make a script being used for a certain period of time ? Like a trial Version ?

      He writes script and shares them but he would like those scripts being used only a certain duration.

      I don't think it is possible but who knows...

       

      Best Regards

        • 1. Re: Script and Trial Period
          Chuck Uebele Adobe Community Professional & MVP

          Yes, you can add a function that checks the current time and it it exceeds a set time it will bypass the script.  The only issue with this is that the scripts can't store the time the trial started, so it would have to be coded in when the script is distrubuted, or you would have to have the script create some sort of file CSV, xml, or txt file that could store that value, but the user could most likely modify that file too.  If you don't save as a binary file, it would also be extremely easy to bypass this.

          • 2. Re: Script and Trial Period
            Michael L Hale Level 5

            Similar questions about securing a script come up from time to time. I have never seen anyone post a solution that could not be broken with very little effort.

            • 3. Re: Script and Trial Period
              JJMack Most Valuable Participant

              I think perhaps it could be done if you required an Internet connection during the trial period.  The script could retrieve the trial start time from the script writers web server. If its not found it would created the start date record for the current machine on the server and the local machine if no local recording. If the record get recorded  run if not don't run.  If found on the server compare the current date time. The question is something like that worth doing.

              • 4. Re: Script and Trial Period
                maximeleve Level 1

                Thank Guys for your help. This is very Helpful.