Scripting with bridge
Hello, i am pretty new to this so i am still figuring out how this scripting works
In general what i want to do is generate a jpg image from an symbols.ai library file and because bridge shows this library in some way, i want to use a script against bridge.
So now i have found a script from the sdk - SnpSaveAsJPEG and i am trying to understand what is happening because i have no experience with javascript.
maybe some advice on some good literature is also good?
can someone please help me with the following questions:
at the bottom we have "new SnpSaveAsJPEG().run();" that makes the program run
why is it executing the (at the top) "function SnpSaveAsJPEG()" even if you change that functions name?
why do we set requiredContext?
is the "$.level" always needed and why do we set it?
next we have the method "SnpSaveAsJPEG.prototype.run = function()"
where does "prototype" come from?
Why is it executing this function as there is nowhere a reference to this?
thanks
