-
Notifications
You must be signed in to change notification settings - Fork 16
/
ShowHelp.jsx
47 lines (41 loc) · 1.01 KB
/
ShowHelp.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// IdExtenso wants to run in INDD.
// ---
#target 'indesign'
// Path to IdExtenso entry point.
// ---
#include '../$$.jsxinc'
// Including some extra modules.
// ---
#include '../etc/$$.Web.jsxlib'
#include '../etc/$$.BigInt.jsxlib'
#include '../etc/$$.Random.jsxlib'
#include '../etc/$$.BasicScript.jsxlib'
#include '../etc/$$.Complex.jsxlib'
#include '../etc/$$.DateFormat.jsxlib'
// Load the framework.
// ---
$$.load();
// =============================================================================
// ShowHelp [171111] [180406]
// Get help on core and included modules.
// ---
// Demonstrates:
// - $$.help()
// =============================================================================
try
{
// The `help` method scans all present modules
// and displays the resulting API in a modal dialog.
// ---
$$.help();
}
catch(e)
{
// In case something goes wrong.
// ---
$$.receiveError(e);
}
// =============================================================================
// Unload the framework.
// ---
$$.unload();