Created
July 20, 2013 09:02
-
-
Save mazgi/6044385 to your computer and use it in GitHub Desktop.
Adobe JSXで特定のjsxファイルが存在すれば読み込む ref: http://qiita.com/mazgi/items/439d7dccb10d9b118db4
This file contains 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
$ tree | |
. | |
├── lib | |
│ └── lib1.jsx | |
└── main.jsx |
This file contains 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
var func = function() { alert('function in lib'); } |
This file contains 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
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