I was thinking of a method for protecting a script, which would consists in retrieving a string from a web server and comparing it with a variable inside the script itself.
Is there any chances for Indesign to accomplish such task? As an alternative, is there an alternative method for doing the same thing, maybe adding a second software in the workflow?
Any ideas would be much appreciated.
Thanks in advance
Yes, ExtendScript can talk to a server. So you can create a .php page to
validate your script and send back confirmation to the script.
Take a look at the Socket object in the documentation.
For optional copy protection, APID provides a licensing system that ties into the InDesign serial number. The end-user needs a proper license from you before the scripts can be executed. You can also provide your potential customers with a time-limited demo of your solution