Skip to main content
Jongware
Community Expert
Community Expert
May 24, 2010
Question

[CS5/JS] Ann: Javascript Help files updated

  • May 24, 2010
  • 4 replies
  • 3261 views

Hi everyone. The new user-friendly Javascript Help files have been updated with a CS5 version. Download link on its homepage: http://www.jongware.com/idjshelp.html

Only in Windows CHM-format for the moment (does anyone at all use the HTML version? If not ... well ... I dunno...).

I spotted a few additions and changes in the Help file -- apart from support for the new commands, obviously -- such as proper Superclass referencing, and a few objects with Class properties, which apparently are something else than Instance properties. Hey, don't ask me. I only converted the file.

Among the more interesting new objects:

* "PlaceGun" -- finally, a way to 'load' the gun with text created solely by scripting?

* "BeforeCreate", "AfterCreate" (and a few more similar): trap the event for (possibly) every object you can place into ID!

* A new Scripting Preference: measurementUnit. Apparently, this is "the measurement unit used during script processing" and, ya-hey!, we scripters don't have to awkwardly read, save, change, and restore, the measurement units anymore!

This topic has been closed for replies.

4 replies

Inspiring
May 27, 2010

Thanks Jong!

This is easly the most important refrence for InDesign scripting.

Jongware
Community Expert
JongwareCommunity ExpertAuthor
Community Expert
June 2, 2010

An updated CHM version is available: http://www.jongware.com/binaries/idcs5js_chm_3.0.1b.zip

Some minor revisions:

* Steven ... asked for a Favourites tab. No problem!

* Some of the longer descriptions were ignored when there was also a short description (see UnitValue, for example).

* Added a few more internal cross-references. (Its internal reference system is slightly different from my 'flattened' pages, so I have to convert them. The SUI elements are still a pain, as they have the same names as a few of ID's elements -- they throw off everything )

* For some reason the page for the "Global classes" was interpreted in the CHM contents as a 'book', rather than a regular help page, and you could not navigate to there! (A search for 'inifinity' still landed you on that page.) Fixed by hand, but I wonder why this happened ...


Edit: Minor update:

With some more CHM trickery I added a Home button (goes to the Contents page) and an Index button (goes to the Class Index). Updated version number to 3.0.1b.

Steven__
Inspiring
June 2, 2010

Thanks

Very Cool

tomaxxi
Inspiring
May 25, 2010

Thank you Jong!

Great work! I'm using it every day!

tomaxxi

Harbs.
Legend
May 25, 2010

Great work, Jong!

FWIW, loading the placegun was always possible using doc.place(), but the new PlaceGun object does appear to give more control.

Re. events: Yup! There's a whole pile of useful events which were added. Check out AFTER_SELECTION_ATTRIBUTE_CHANGED and AFTER_SELECTION_CHANGED...

Thanks for the heads up re. the new scripting preference. I missed that one...

Harbs

Inspiring
May 25, 2010

Thank you very very much.

It is a best Indesign scripting reference.

Please provide HTML version if possible because i have Mac 10.4.11 in office and Robin Lu's iChm requires Mac OS X 10.5 or above.

Shonky

Jongware
Community Expert
JongwareCommunity ExpertAuthor
Community Expert
May 25, 2010

Sure, no problem. XSLT makes it really easy to generate different versions, so it's just a matter of actually doing it (the input for the CHM version is also HTML but there are a few tiny differences). I'll try to get it up a.s.a.p.

Inspiring
May 25, 2010

Thanks Jong!

Shonky