Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

NUBI question console.log in extendscript

Return to Member Forum

  • Author
    Posts
    • #101283
      James Welsh
      Member

      I’m used to being able to log functions and variables etc in a web environment. Extenscript doesn’t seem to behave the same way.

      What do you guys do instead?

      Sorry if this is so simple. I’ve referred to the Adobe scripting booker but it doesn’t really come out and say.

    • #101300
      David Blatner
      Keymaster

      James, I am not a scripter, but I asked some who replied:

      “you can do all of the same things in ExtendScript. Basically, $.writeln(string) is equivalent to console.log(string).”

      Note that this requires you’re working in ESTK (extendscript toolkit)

      Another person wrote: “Can also use log factory in any environment https://creative-scripts.com/logging-with-a-smile/

    • #101305
      Loic Aigon
      Member

      I second David and as a more personal opinion, I tend to use external logging myself (writing to a log file). $.writeln instructions may be really performance consuming especially in large loops.

    • #101309
      David Blatner
      Keymaster

      There are several very good references for scripting on the web… for example, Marc Autret often writes about scripting matters at: https://www.indiscripts.com

      Loic (who posted above) has information at https://www.ozalto.com

      There’s more information here: https://creativepro.com/category/secrets/scripting-secrets

    • #101801
      James Welsh
      Member

      Thanks David et al this has been helpful!

Viewing 4 reply threads
  • You must be logged in to reply to this topic.
Forum Ads