Get all the globals InDesign

I would like to get the list of all the globals of InDesign. (I recently using the Sublime text 2 with the plugin SublimeLinter and JSHint editor and stop worrying about undefined variables.)

I have all the names of document class comes the OMV (thanks Jongware!) file and now just want to other globals (app, output, file, etc.). It is not that much, but I do not understand why:

for (var i in this) {
     $.writeln(i);
}

print only a weird Tote of property names. Some of the properties not returning are not enumerable (including the output and file), so I guess that makes sense, but

this.propertyIsEnumerable("app");

for example, returns the value true, but is not printed by the for... to loop.

So, two questions:

1. why not app and other countable property of the impression of the global object in the example above? and

2. is it possible to retrieve the names of property and method not enumerable?

Jeff

Hi Jeff,

(1) provided that this = .global $, app property should be listed in your .. for to loop. It is strange that you do not see this key. On my platform, "app" in $.global is true. You should check this:

alert ($. global.reflect.properties);

(2) no enumerable properties of the global object are usually methods (simple functions such as exit), or object as filebuilders. By definition the ... for in loop will not pick up these keys, but you can catch them with:

alert ($. global.reflect.methods);

@+

Marc

Tags: InDesign

Similar Questions

Maybe you are looking for

  • Deleted contact ID

    I have an iphone with iOS 10 6. The contact id stopped working since 9.3.5. I tried reboot soft at the time, and it helped but only for a little while. Then I updated to iOS 10, and contact ID could still serve. But now, two days later, the same ques

  • Re: Satellite Pro L300-1FK - undetected RAM

    I have a satellite L300-1FK pro and want to upgrade the RAM to 4 GB and the RAM, which I bought is not detected during installation in the laptop. The screen remains blank when turned on. The laptop model is: L300-1FK (PSL9BE). The RAM I bought is Ki

  • Re: My laptop does not start, it cannot detect the hard drive

    I'm having the same problem but a bit different. I noticed that the support said to replace the hard drive and that's what I did with a disc Windows 8.1 and I took a step after test and see if my hard drive is not really usable. I put it in another c

  • How to convert 3.0 7.1 VI VI?

    I update an older system which was held on a Windows 3.1 machine using Labview 3.0.  I wish I could use this on a modern version of Labview VI.  I tried to open it by using Labview 7.1, but he couldn't make the conversion.  Can I use an intermediate

  • If I go to safe mode to try to remove the bugs on my PC it affect anything on my normal CCP?

    It removes anything from my computer? Software, applications, images, documents?