Skip to content

Adobe ExtendScript modules (especially InDesign, and Illustrator)

License

Notifications You must be signed in to change notification settings

UskeS/ExtendScriptModules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExtendScriptModules

Adobe ExtendScript modules.

Installation

Clone or download this repositry.
If you download, I recommend putting this repositry in your home folder.

Usage

Import modules

You can import these modules using the preprocessor directives, for example:

//@include "~/ExtendScriptModules/common/array_filter.jsxinc"

You can also use //@includepath (It's useful when importing multiple modules.) :

//@includepath "common; SUI; InDesign;"
//@include "array_filter.jsxinc"
//@include "json2.jsxinc"
//@include "exportTextFile.jsxinc"
//@include "multiButtonSUIDialog.jsxinc"

For more details about preprocessor directives, see 'JAVASCRIPT TOOLS GUIDE'.

If you want to import all script modules, import 'AllModules.jsxinc'.

//@include "~/ExtendScriptModules/AllModules.jsxinc"

Call methods

Some modules are stored ESUtil object.

var result = ESUtil.multiBtnDlg("dialog title", "which do you like?", ["Apple", "Orange", "Banana"], 0);

There are also modules that use prototype extensions.

var even = [10, 4, 7, 1, 12, 9].filter(function(el){
    return el % 2 === 0;
});

Notice

License

see LICENSE.

the same name function

Do not use a function with the same name as modules in any scope.
It can cause serious malfunctions.

about common modules

Modules in common folder are tested in InDesign and Illustrator.
If you use any common module in other apps, test it carefully.

About

Adobe ExtendScript modules (especially InDesign, and Illustrator)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published