Skip to content

Instantly share code, notes, and snippets.

@mhulse
Created December 27, 2015 05:53
Show Gist options
  • Save mhulse/5f2fb7dbe48b65cd6861 to your computer and use it in GitHub Desktop.
Save mhulse/5f2fb7dbe48b65cd6861 to your computer and use it in GitHub Desktop.
Adobe Illustrator JSX boilerplate. Starter script for new ExtendScript JS plugins.
/* 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