Skip to content

Instantly share code, notes, and snippets.

@mazgi
Created July 20, 2013 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazgi/6044385 to your computer and use it in GitHub Desktop.
Save mazgi/6044385 to your computer and use it in GitHub Desktop.
Adobe JSXで特定のjsxファイルが存在すれば読み込む ref: http://qiita.com/mazgi/items/439d7dccb10d9b118db4
$ tree
.
├── lib
│   └── lib1.jsx
└── main.jsx
var func = function() { alert('function in lib'); }
const SELF = (function(){
try {app.documents.test()}
catch(e) {return File(e.fileName)}
})();
var func = function() { alert('function in main'); }
if(new File(SELF.path + '/lib/lib1.jsx').exists) {
$.evalFile(SELF.path + '/lib/lib1.jsx');
}
func();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment