• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to learn java script in indesign

New Here ,
Jul 20, 2012 Jul 20, 2012

Copy link to clipboard

Copied

Dear Sir,

I am a template designer, I am interesting on Indesign scripting but I don't know basic knowledge in software languages. So Please help me which languages i should learn for indesign scripting. (some of them saying C language is must). Is c language is essential or Shall i go directly with java script. And also i want Beginners indesign scripting guide (not advanced) and give me some tips how should i develop skills in a short period. Please advice me.

TOPICS
Scripting

Views

6.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 21, 2012 Jul 21, 2012

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 23, 2012 Jul 23, 2012

Copy link to clipboard

Copied

Sir Please give me some other guides and explain for my question (C language is essential or Not)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 23, 2012 Jul 23, 2012

Copy link to clipboard

Copied

No.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 23, 2012 Jul 23, 2012

Copy link to clipboard

Copied

Hi Rajesh,

         In javascript, some concept and codes are used as like C. If u know it, then it's some more easy. But For learning Javascript, U go to learn C, then Javascript, It's Bad Idea. Better u gove with Javascript basic. Then Get into Indesign JS.

Better u go throw the below site... Hope it's some more useful.

http://www.w3schools.com/js/

Thanks and Regards,

Vel.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 23, 2012 Jul 23, 2012

Copy link to clipboard

Copied

Do you have any programming experience?

Do you know the basics of programming?

Have you ever written any script/program/whatever in any language?

Once you know the basics, how to think a program, how to structure it, learning a (new) programming language is rather trivial in most cases. If you are starting from absolute 0, I suggest you try your hand with a bit of pseudo-code, for start, to develop you logical thinking.

A good book for this: http://www.amazon.com/Absolute-Beginners-Guide-Programming-Perry/dp/061391774X

Now for your question:

C won't help you much with Indesign. But:

  1. It's sintax is similar to javascript
  2. It's easier to learn
  3. it will give you a solid fundation for learning other programming languages
  4. however in C it's very easy to learn some very bad programming habbits (i still can't shake some of them after 20 years of so)

So, in conclusion, if you re in a hurry, jump (almost) straight into javascript. But if you want a solid start, i sugest a route like: pseudocode -> pascal (or BASIC) -> C -> C++ -> ANYTHING YOU WANT (javascript, java, python, Lisp whatever).

Here is some beginning help with javascript:

http://www.w3schools.com/js/default.asp

and: http://www.codecademy.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 24, 2012 Jul 24, 2012

Copy link to clipboard

Copied

I totally disagree with Vamitul.

There's NO advantage to learning C first. Some of the syntax is the same (curly braces, etc.), but the concepts are TOTALLY different. C is a statically typed language and Javascript is a dynamically typed language.

You can get going with Javascript with almost no background. For a quick start, I recommend the guides on this site: http://www.hunlock.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jul 26, 2012 Jul 26, 2012

Copy link to clipboard

Copied

+1

What we call here "InDesign JavaScript" (DOM+language) is syntactically based on Adobe ExtendScript, which derives from E4X (ECMAScript for XML) and ECMAScript itself. (JavaScript is known as an implementation of the ECMAScript standard.)

In short terms, "InDesign JS" as a language should somewhat implement the ECMAScript and E4X specifications, i.e. ECMA-262 and ECMA-357:

1) http://www.ecma-international.org/publications/standards/Ecma-262.htm

2) http://www.ecma-international.org/publications/standards/Ecma-357.htm

It is true that the JavaScript's syntax and conventions contain familiar echoes from C or even Java, but these languages are definitely different on the semantic level and I really don't believe it's a good idea to learn C before learning JS.

Here are a few links I would add to this discussion:

The basics:

– Eloquent JavaScript (Marijn Haverbeke): http://eloquentjavascript.net/

– JavaScript Guide (MDN): https://developer.mozilla.org/en/JavaScript/Guide

– Douglas Crockford on JavaScript: http://javascript.crockford.com/

Advanced articles and resources:

– Peter Michaux (see "JavaScript Language"): http://peter.michaux.ca/

– Learning Advanced JavaScript (John Resig's tutorial): http://ejohn.org/apps/learn/

– Higher-Order JavaScript (Sean M. Burke): http://interglacial.com/hoj/hoj.html

– Annotated ECMAScript 5.1 (next spec., in the making): http://es5.github.com/

@+

Marc

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 26, 2012 Jul 26, 2012

Copy link to clipboard

Copied

Learning new programming languages in any depth is not trival. It might not be the hardest task in programming but it isn't the easiest either by a long shot.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2012 Jul 26, 2012

Copy link to clipboard

Copied

wideEyedPupil wrote:

Learning new programming languages in any depth is not trival. It might not be the hardest task in programming but it isn't the easiest either by a long shot.

Certainly not with that added requirement

.. how should i develop skills in a short period

On http://www.adobe.com/devnet/indesign/documentation.edu.html there are links to beginners' tutorials for Javascript, AppleScript, and VBScript.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 30, 2017 Jun 30, 2017

Copy link to clipboard

Copied

What's the time investment in order to be proficient in creating InDesign scripts? Most companies don't want to pay an employee to learn on the job if it's going to take 6 months to a year to really be proficient. Could someone learn to do some serious scripting in a month?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jun 30, 2017 Jun 30, 2017

Copy link to clipboard

Copied

LATEST
Could someone learn to do some serious scripting in a month?

No!

If you already have a solid knowledge of Indesign as a user, and are also somewhat proficient with JS it will still take you more time to get familiar enough with the DOM

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines