Created
December 27, 2015 05:53
-
-
Save mhulse/5f2fb7dbe48b65cd6861 to your computer and use it in GitHub Desktop.
Adobe Illustrator JSX boilerplate. Starter script for new ExtendScript JS plugins.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jshint laxbreak:true, -W043, -W030 */ | |
/* globals app */ | |
// jshint ignore:start | |
#target illustrator | |
#targetengine main | |
// jshint ignore:end | |
/** | |
* @@@BUILDINFO@@@ Boilerplate.jsx !Version! Fri Dec 25 2015 22:47:45 GMT-0800 | |
* | |
* @see https://gist.github.com/mhulse/5f2fb7dbe48b65cd6861 | |
*/ | |
var NS = 'BP'; | |
this[NS] = (function(_$this, _$application, _$window, undefined) { | |
'use strict'; | |
//---------------------------------------------------------------------- | |
// Private variables: | |
//---------------------------------------------------------------------- | |
var _private = {}; | |
//---------------------------------------------------------------------- | |
// Private methods: | |
//---------------------------------------------------------------------- | |
/** | |
* Internal init/constructor. | |
* | |
* @return {void} | |
*/ | |
_private.main = function() { | |
}; | |
//---------------------------------------------------------------------- | |
// Public methods: | |
//---------------------------------------------------------------------- | |
/** | |
* Constructor. | |
* | |
* @param {string} $title Title of palette window. | |
* @return {void} | |
*/ | |
_$this.init = function($title) { | |
}; | |
//---------------------------------------------------------------------- | |
// Return public API: | |
//---------------------------------------------------------------------- | |
return _$this; | |
}((this[NS] || {}), app, Window)); | |
//---------------------------------------------------------------------- | |
// Initialize plugin: | |
//---------------------------------------------------------------------- | |
this[NS].init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment